views:

57

answers:

1
+2  Q: 

facebook android

Hi i'm begginner in android, devolping apllication in android to connect facebook and upload photo by using android facebook sdk but when i login i'm getting allow perimsion window when i click allow its not giving any action what is the problem please help me.

Thanks, San

A: 

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

Pentium10
Hi can you please upload sample code?
san
@san See my edit.
Pentium10
Thanks for reply Pentium10, i wanted java code do have java code?
san
No, I don't have Java code.
Pentium10