User must have accepted TOS - Facebook Graph API error when posting photos to group page -


I am struggling to upload an image from a user's computer and on our group page using the Facebook Graph API Posted. I was sending a request to post to Facebook with the image, however, I am getting this error back: Error: (# 200) The user will have accepted the TOS To some degree, I do not believe that It needs to authorize itself because the photo is being uploaded on our group page. This is the code below which I am using:

  if ($ albumId! = Null) {$ args = array ('message' = & gt; $ description); $ Ag [baseman ($ photopath)] = '@' realpath ($ photoPath); $ Ch = curl_init (); $ Url = 'https://graph.facebook.com/'.aalbumId.'/photos?' .$token; Curl_setopt ($ ch, CURLOPT_URL, $ url); Curl_setopt ($ CH, CURLOPT_HEADER, incorrect); Curl_setopt ($ CH, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ ch, CURLOPT_POST, true); Curl_setopt ($ ch, CURLOPT_POSTFIELDS, $ args); Curl_setopt ($ CH, CURLOPT_SSL_VERIFYHOST, 0); Curl_setopt ($ CH, CURLOPT_SSL_VERIFYPEER, 0); $ Data = curl_xac ($ ch); $ PhotoId = json_decode ($ data, true); If the ($ photoId ['error']) dies ('error:'. $ PhotoId ['error'] ['message']); $ Temp = explosion ('.', Sprintf ('% f' $ PhotoId ['id']); $ PhotoId = $ temp [0]; return $ photoId;}  

Can anyone tell me that I request additional permissions from the user Need to do or what am I doing wrong?

Thank you very much!


Actually, I have never succeeded in this :(. In the form, we have created a new Facebook user instead of a group page.

< P>

This is a known bug and it seems that they are working on it:


Comments