Uploading a photo from another server directy to Facebook

非 Y 不嫁゛ 提交于 2019-12-11 02:39:37

问题


Im trying to do a simple script with this:

How-To: Use the Graph API to Upload Photos to a user’s profile

But my problem is two things:

  1. I want the users to be able to send the pictures from my site to facebook with out having to download it and then upload it
  2. I would like to have a diferent respond insted the number one gets from facebook

I seen some pages do this,

Please help


回答1:


The doc says "you can upload a photo by issuing an HTTP POST request with the photo content and an optional description". Try perhaps with the image's web url. According to this, it should work.

For the second, you should use XMLHTTPRequest.



来源:https://stackoverflow.com/questions/9148155/uploading-a-photo-from-another-server-directy-to-facebook

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