OAuthException when trying to upload/post photos to group
问题 I am currently trying to upload photos to pages and groups through an app. I have these codes: try { $facebook->setFileUploadSupport(true); $args = array('message' => 'This is my image caption',); $args['image'] = '@'.realpath('./uploads/terragarden1.png'); $response = $facebook->api('/GROUP_ID/photos/','POST',$args); } catch(FacebookApiException $e) { echo "Error: ".$e; } The value of $args['image'] would be something like this: @/home/publica/public_html/AutoPost/uploads/terragarden1.png