Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Facebook - apprequests

$
0
0

I've got an issue with the fb apprequests dialog

When the user first logs in i request these permissions: var fb_permissions = ['read_stream', 'email', 'publish_stream', 'offline_access', 'publish_actions'];

Then i try to use the apprequests dialog

fb.dialog("apprequests", {
                    token: fb.getAccessToken(),
                    message : "Why not come and write a story with me",
                    to : user.properties.id
                }, function(e) {
                    if (e.success) {
However i keep receiving the below error:
An error occurred. Pleas try again later.
API Error Code: 110
API Error Description: Invalid user id
Error Message: Missing user cookie (to validate session user)
The only time it seems to work is if the user logs out and then i authorize the user again.

I tried to use the reauthorize(); command by doing:

fb.reauthorize(['publish_stream', 'publish_actions'], 'me', function(e){
            if (e.success) {        
                fb.dialog("apprequests", {
                    token: fb.getAccessToken(),
                    message : "Why not come and write a story with me",
                    to : user.properties.id
                }, function(e) {
                    if (e.success) {
However this just takes the user out of the app and to the browser where it asks them to log-in again and then says that you have already authorized this app, then gives an error Invalid Scope: bookmarked

The facebook docs say that the request dialog doesn't need the publish_stream or publish_actions permissions either

Any ideas?


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>