Currently i can post news feed updates using objectids of some of my web pages to facebook users who have liked those pages.
Now i\'m trying to test the new open gra
Currently publish_actions
is only usable for test users and developers of your app (or for posting scores and achievements if your app is in the Games category) - there's no way to post Open Graph objects and actions except for testers of your app - the APIs are still in beta
[edit] if you're using the add-to-timeline button you might need to enable the 'enhanced auth dialog' migration in your app's advanced settings [/edit]
I know it might be very late to post an answer[but it might be helpful to others], but as of 2014 if you want to post anything to the user[apart from the app registered developer] timeline you need Facebook permission i.e the app needs to be submitted for approval
Please refer the following links.
1) https://developers.facebook.com/docs/facebook-login/permissions/v2.0#review
2) https://developers.facebook.com/docs/apps/review/
3) https://developers.facebook.com/docs/facebook-login/permissions/v2.0.
you can check that it's right below the overview section. This has been verifed with the latest version of the SDK
I suspect you are not correctly asking for the permission. This drove me crazy for hours. Even though I was correctly asking for permission and it appeared to authenticate, in reality the permission was not being granted because I had not setup the application correctly for open graph.
When asking for publish_actions
, Facebook shows a preview screen of what sort of aggregations your app will create on their timeline.
In other words, if the preview isn't working, Facebook won't ask for the permission so you're asking in vain. Facebook doesn't make this clear in the docs, but everything needs to be perfectly setup with your app on Facebook to get this to work right.
Enhanced Auth Dialong
in the advanced settings of the app
action
and one object
set up in the open graph
sectionaction
you must have an aggregation
set up.If you do not do all of these steps, there can be no preview and so Facebook won't ask for permission no matter what.
you must need to install the app following facebook standard app installation process to fix that error!!
i have just done that and the error is vanished!!
I was going through this problem recently, and I succeeded to solve it.
publish_actions is a scope that Facebook has to manually approve for the app to use. Starting a submission on the app's settings page is needed with detailful description and demo of Your app. They answer in around a week after a human tester is done with checking the app.
Afterwards Your approach works perfectly.