Download & Extend

Facebook connect using a custom url

Project:Drupal for Facebook
Version:7.x-3.3-beta5
Component:Facebook Connect
Category:support request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Hello,

What i'm trying to do is facebook connect functionality through a custom url and not through the default fb popup/javascript.

<?php
$url
= "https://www.facebook.com/dialog/oauth?client_id=306583906119415&redirect_uri=http://domain-name.com/&scope=$perms&response_type=token";

$button = "<a href='$url'>Login with facebook</a>";
?>

Now when i click on this link, it works just fine in terms of connecting to facebook, but after the user authorize the application and Facebook redirect you to the website. It does not auto login at the site, and you have to click again on the "Login with facebook" link and to login you in.

Do you know how to do this correctly? or what i should set my facebook redirect url as?

Thanks.

Comments

#1

any ideas?

#2

Status:active» needs review

This documentation may need some updating, but should mostly be correct and should help: http://drupal.org/node/969242

nobody click here