开发者

Post to Facebook page feed without first liking the page

Is it possible to post to a facebook page feed without first liking the page?

I tried the feed dialog using something like the code below -- https://www.facebook.com/dialog/feed?app_id=X&to=Y&redirect_uri=Z which resulted in an error "An invalid target was specified: Y. The target must be a page, event, or user that the actor can post on the wall of."

I also tried creating an access token from the page admin and then posting using the graph, but that resulted in the feed post co开发者_JAVA技巧ming from the admin and not the user who is posting.

I simply need the user to be able to post to the pages wall. Any ideas?

Thank you!


See the FB docs:

feed

This connection corresponds to the Page's Wall. You can create a link, post or status message by issuing an HTTP POST request to the PAGE_ID/feed connection. To see more details please see links, posts, and status messages documentation.

To impersonate the Page when posting to the wall (i.e. post as the Page, and not the current user), you must use a Page access_token with the manage_pages and publish_stream permissions, as described under Page Access Tokens above.

Posts may be targeted to countries, cities, regions or locales using the targeting parameter. Please see Post for additional information.

edit:

Sorry, bad part above, correct is:

posts Create

You can create a post on a Page by issuing an HTTP POST request to PAGE_ID/feed with the publish_stream and manage_pages permissions and the following parameters.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜