There seems to have been a huge change in the way Facebook manages apps that access their API. Now it seems if you want to create any app that allows uploads to Facebook this application MUST be reviewed by Facebook. Am I wrong? has anyone actually managed to speak or correspond DIRECTLY with anyone at facebook to confirm this?
So my question is, after a week of hair pulling and trying to get a simple image uploading application working, what permissions are necessary to upload a photo to facebook?
Right now I have publish_actions email pubic_profile user_friends
I'm guessing I ALSO need user_photo permissions.
But the convoluted process that is required to add more permissions has me stumped.
First i click new submission. Then I select user_photos. But I then get an error saying
'It looks like you haven't made any API requests to access content with the user_photos permission in the last 30 days. You need to test this permission in your app with any account listed in Roles before you can submit for review. It looks like you havent tested this permission because no API request has been made against publish_actions in the last 30 days.
Which seems INCORRECT to me since in my signed GET request for image uploading I see the following
redirect_uri fbconnect://success
display touch
state {"is_open_session":true,"is_active_session":true,"com.facebook.sdk_client_state":true,"3_method":"fallback_auth","0_auth_logger_id":"foo"}
scope ****user_photos****
Ok, can any Facebook API experts confirm that
1) I definitely need to submit my app for review in order to upload photos to a facebook account
2) I need user_photo permissions
and
3) I must first set up a test user and test with user_photos BEFORE I submit the app
Addendum. After further testing am getting the image upload to work for all users, BUT only after logging in a 2nd time. ie after first login submit the user is presented with a new blank login popup. Only after logging in a 2nd time (the photo upload is done immediately after login) is the image uploaded successfully.
Can anyone suggest why this is happening? I've posted a 2nd question here Facebook Image Uploads-required to login twice for first upload
答案 0 :(得分:3)
这样做,你的问题就会解决 去https://developers.facebook.com/tools/explorer/ 选择您的应用程序并获取访问令牌,并将其放在提交" me / photos?fields = album"并按提交> 这已经完成了。请求API使用user_photos权限访问内容。 对于API请求的每个权限需求也可以做到这一点,只需要一些chage ... etc
答案 1 :(得分:0)
从文档中应该清楚什么是必要的,什么不是。我想我已经在你的另一个问题中回答了问题1)和2):
我怀疑3)是必要的,因为根据文档user_photos
需要检索照片,publish_actions
到上传照片...
参考文献: