Note that there are some explanatory texts on larger screens.

plurals
  1. POProblem with redirect after FB.Connect.showPermissionDialog
    primarykey
    data
    text
    <p>I'm building a facebook connect app to publish content to user's streams. In order to do that, I need to get extended publish_stream permission from the users. I'm using the function code to do so.</p> <p><strong>Check connection status</strong></p> <pre><code>&lt;input type="button" onclick="statusSubmit('Permission to publish : ');" value="Check connection status" /&gt; &lt;script type="text/javascript"&gt; function statusSubmit(status) { facebook_prompt_permission('publish_stream', function(accepted) { if(accepted) { // User (already) has permission alert(status + 'already granted'); } else { // User does not have permission alert(status + ' not granted'); } }); } function facebook_prompt_permission(permission, callbackFunc) { // Check if user has permission, if not invoke dialog. FB.ensureInit(function() { FB.Connect.requireSession(function(){ //check is user already granted for this permission or not FB.Facebook.apiClient.users_hasAppPermission(permission, function(result) { // prompt offline permission if (result == 0) { // render the permission dialog FB.Connect.showPermissionDialog(permission, function(result){ if (null == result) alert('no permissons granted'); else alert('permissions ' + result); }, true, null); } else { // permission already granted. callbackFunc(true); } }); }); }); } &lt;/script&gt; </code></pre> <p>After the permissions dialog is displayed and the user grants the permissions, there is a redirect my current page on my local development machine. I cannot seem to control this redirect behaviour through my settings. I have tried changing the "Post-Authorize Callback URL" to a publicly visible page, but it does not get called. Is there something I'm missing? I would like to either</p> <ol> <li>Get the post-authorize callback URL to something that works OR</li> <li>Even better if there is no redirection after the user grants permissions. This option would be the best.</li> </ol> <p>Thank you for any suggestions.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload