Help how works fb log in on my site,

Started on the old forum in June 2013 · view the original in the archive · old links redirect here

3 replies · 1,723 views · started 13 years ago · 1 min read

3 participants
reymon07 Junior · 47 posts #1

Any one help me i have a error of my fb log in it seems blank pages,

C0de:

<?php $stoken = Util::getMD5GUID(); $gWeb->store("fb_state",$stoken); $fbAppId = Config::getInstance()->get_value("470580912986218"); $host = "http://".$_SERVER["HTTP_HOST"]; $fbCallback = $host."/callback/fb2.php" ; $fbDialogUrl = "https://www.facebook.com/dialog/oauth?client_id=".$fbAppId ; $fbDialogUrl .= "&redirect_uri=".urlencode($fbCallback)."&scope=email&state=".$stoken ; ?>

Login with Facebook

Anyone have complete code my script is lava.,

Live Community

chelios Junior · 13 posts #2

Your code is full of unfinished and unclosed stuff

<?php
$stoken = Util::getMD5GUID();
$gWeb->store("fb_state",$stoken);
$fbAppId = Config::getInstance()->get_value("470580912986218");
$host = "http://".$_SERVER["HTTP_HOST"];//--->fail to close properly
$fbCallback = $host."/callback/fb2.php" ;//---->fail to open properly
$fbDialogUrl = "https://www.facebook.com/dialog/oauth?client_id=".$fbAppId ;//---> total fckup
$fbDialogUrl .= "&redirect_uri=".urlencode($fbCallback)."&scope=em ail&state=".$stoken ;//--->$token begin with ( ". ) but not ending with ( ." )
 ?>
<?php
$stoken = Util::getMD5GUID();
$gWeb->store("fb_state",$stoken);
$fbAppId = Config::getInstance()->get_value("470580912986218");
$host = "http://".$_SERVER["HTTP_HOST"]."";
$fbCallback = "".$host."/callback/fb2.php" ;
$fbDialogUrl = "https://www.facebook.com/dialog/oauth?client_id=".$fbAppId."";
$fbDialogUrl .= "&redirect_uri=".urlencode($fbCallback)."&scope=em ail&state=".$stoken."";
 ?>
reymon07 Junior · 47 posts #3

thank you i will try this one.

Live Community

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close