开发者

facebook android allow permission window problem

I'm beginner with android and developing an application in android to connect to facebook and upload photo usin开发者_JAVA技巧g the android facebook sdk.

Problem is when I login I'm getting an allow permission window. When I click allow, its not giving any action.

Any ideas on the problem?


After you authorize Permissions on Facebook, Facebook will redirect your to a confirm url you told the system to redirect to. Please check if you pass that url after approval redirection in the next parameter (assuming you use webbased authentication)

I've done from a PHP server this way:

function promptForPermissions() {
    global $permissions;
    $gateway="http://www.facebook.com/connect/prompt_permissions.php";
    header("Location: ".$gateway."?api_key=".API_KEY."&ext_perm=".join(",",$permissions)."&next=".URL_AFTER_APPROVAL."&cancel=".URL_IF_CANCEL."&display=touch");
}

where the urls were having this format:

http://www.example.com/callback.php?permissionsApproved=1
http://www.example.com/callback.php?cancelled=1

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜