Problem with post a picture in Facebook Wall with Graph API

限于喜欢 提交于 2020-01-06 05:10:08

问题


I am using the Graph API for Facebook in order to post a message and a picture through my application to the user's wall. I use this one:

$facebook->api('/me/feed', 
               'post', 
               array( 
                 'access_token' => $token, 
                 'message' => $message, 
                 'caption' => $caption, 
                 'description' => $description, 
                 'picture' => $picture, 
                 'cb' => ''
                )
              );

This works fine for around 4-5 months now. Suddenly I cannot post the picture. I haven't changed my code at all, but now I cannot see the image that is supposed to be posted.

I really don't know what is the problem. I would really appreciate any help!

Thanks in advance


回答1:


May be you need to use rawurlencode to pass google chart api url. As that consist of many special characters.




回答2:


The feed will only allow you to upload small images. Try a small image, if it works your probably need to post as image instead of wall post.



来源:https://stackoverflow.com/questions/5535657/problem-with-post-a-picture-in-facebook-wall-with-graph-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!