简体   繁体   中英

Problem with Facebook PHP SDK wall post when changing the Canvas URL

I made an iFrame FB application for a company, which is perfectly working when stored in my server but when I moved it to the company server, and change the Canvas URL, the application worked fine apart from the $facebook->api('/me/feed/', 'post', $attachment); function which doesn't work anymore.

I wrote a simple test script doing the next actions: 1) creating a session 2) sending a post to the wall

In both cases (my server and the company server), the session is always correctly created but the post to the wall is not working for the company.

I, of course, already tried to clear the cache, uninstall the application after changing the Canvas URL, but no luck. Still the session is created but the post to the wall never works.

I also tried to move the application from my server to another folder in my server (different Canvas URL but same domain) and it worked fine. So maybe this means that the problem lies into the domain change in the Canvas URL ???

Note : Both my server and the company server use PHP 5.

Thanks in advance for your help!

Solution : the fb_ca_chain_bundle.crt file was missing. The strange thing is that it was also missing on my server and it was working without it.

Anyway, problem solved!

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