I'm trying to submit for my application a Facebook open graph action of Read. But when i submit it i got the following response.
We are unable to test this action according to the usage instructions
you provided. Please provide thorough reproduction instructions and
link(s) to a specific URL where we can trigger the action. You should
also test your action to ensure you can successfully publish actions
back to the timeline of the test user named Auth Dialog Preview User.
Once you have made these changes, re-submit your action.
I can understand the first part, but I don't understand the following parts.
You should also test your action to ensure you can successfully
publish actions back to the timeline of the test user named Auth
Dialog Preview User. Once you have made these changes, re-submit your
action.
What does this means and how can I fix them? Thanks
It means you have to use the automatically created test user for your app called 'Auth Dialog Preview User' and post some of the actions from that user's account.
https://developers.facebook.com/docs/test_users/ explains how test users work in general, you can log in as them via the app settings interface
Related
I have created a simple FB webhook app and have subscribed to trigger on feed activity. I successfully added and tested the user subscription, and clicking the webhook test button test works perfectly.
I have fulfilled all requirements and it is now live, but it does not work on my live FB feed.
I saw a post saying that I needed to obtain "pages_manage_metadata" and "pages_show_list" permissions, and I have been approved for that, but it still won't work despite being in live mode.
What am I missing?
I have created a custom object and custom action with Open Graph, and they have already been approved by facebook. I am able to publish this custom action as a user, but not as a page.
The steps I follow are:
The user authorize the app via the login dialog, granting the publish_actions permission
I exchange the short-lived user_access_token for a long-lived one.
I fetch https://graph.facebook.com/me/accounts?access_token=... and get the page_access_token
I try to publish a custom action on the page timeline on behalf of the page, without success, getting an enigmatic OAuthException with message "An unknown error has occurred."
The auth dialog is correctly asking all the permissions, and posting the same custom action on a user wall on behalf of the user works properly.
Is this a bug or I am missing something? Anyone managed to publish a custom action AS A PAGE?
I don’t think you can undertake actions as a page – actions are ment to be undertaken by real people …
To get Open Graph action running against my app this is what I'm trying to do:
Create the actions and the objects
Create the object metafile
Publish the actions
This didn't work for the Admin itself because too many errors got generated by FB
Errors were generated since the actions weren't approved and publishing those actions was failing for my current user base.
To get around the errors (which is blocking the approval of my actions from FB), I blocked out my user base from publishing the actions and put filters in for the Admin, developers and testers (that is, only publish requests originating from these accounts go through)
Is there a better way of getting this done?
That's correct. The actions should only be enabled for test users / admins / devs of the application until Facebook has approved the action. However, if the publish action fails, you should fail gracefully in any case. The user shouldn't know there was an error, but you should log it for debugging later on.
I'm trying to implement the Open Graph custom action and object.
I'm using this tutorial as a reference https://developers.facebook.com/docs/opengraph/tutorial/
Things seem to work fine, and I'm able to use the curl command to post an action on my timeline.
However, when trying to do it from the site, the popup that request for permission doesn't have the open graph action request, even though I request for publish_actions permission.
What am I missing? Do I have to publish the action first before it will show up on the referral dialog? Note that under the app setting, if I go to Auth Dialog > advanced and do "Preview Referral Dialog", the popup dialog looks correct.
If you are an Admin or Developer of the application, you will be able to request permission to publish_actions before the action is approved. Try using the API Explorer tool to test the request you are making from the website: https://developers.facebook.com/tools/explorer/
Are you removing the application before trying to test the action from your site? If you have already approved the app and the requested permission, you won't see the Dialog box again.
Post up the code you are using to request the publish_actions permission. Also, make sure 'Enhanced Auth Dialog' is enabled from the 'Advanced' Settings for your App.
Using the Roles dashboard, I can create Facebook test user accounts but when trying to make them friends with each other via ticking appropriate accounts and then the 'make friends' button seems to do absolutely nothing.
I have then tried to make these accounts friends via the api call:
https://graph.facebook.com/{test user id 1}/friends/{test user id 2}?method=post&access_token={test user 1 access token}
This results in an OAuth Exception being returned:
{"error":{"message":"Error validating application.","type":"OAuthException"}}
This feature has worked previously for me (clicking the make friends button). Has anyone got any ideas on how to resolve this problem?
Apparently this was a bug, you can now go in via the modify roles menu in the application and select users to 'make friends'. This functionality is still pretty buggy but it does work eventually.
There is ui for it now which is helpful, the only bummer is that I also get the same OAuth exception as the original poster. It'd be nice to be able to do this with an API.
Now Facebook Resolve this from their End. Any developer can manually create a friend list for test user from developer console.
Follow the Below Steps:
Step-1: Login in Your developer console and click on you app project.
Click on Link to login: Facebook Developer Account Link
Step-2: Inside their you can see Roles click on their and then click on Test Users
See Below attached Images:
Step-3: Now click on Add to create number of test user. One Popup is display which you can see in below images. At their you have to mention test user permission which you want to perform.
For example, If you want to fetch list of test user friends then you need user_friends permission.
To get more link about Facebook permission/scope visit Facebook Permission Page
Step-4: Here in below image you can see list of test user which you created using step-3. Now you can click on Edit to add those other test user as friend of one another. for that you to click in Manage this test user friends and add other test user name in popup dialog.
Similarly you can also assign permission or remove test user once as per your requirement. This is it.