简体   繁体   中英

I can't post a message on Facebook Wall with my application

I'm trying to make an application that shares the content of my website automaticly whenever a post is posted. So I started with Graph Api Explorer. I got an access token of application Graph Api Explorer with manage_pages and publish_actions permissions.

When I use Graph Api Explorer it posts the message as page post which is I want it to be but when I use my own test application with the same permissions and query structure it posts it as fan post. Please help me what is wrong. Here is some screenshots that will help me to tell the problem:

图片

and the result is:

图片

Perfectly fine! But when I try to do it with my own application,

图片 the settings are the same as above

and the result is:

图片

By the way my application isn't approved becuase I didn't submit an approval. Is this the problem?

No, application approval is not necessary. You just need to use access_token of your page not of your profile.

 $facebook->api("/PAGE_ID?fields=access_token");

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM