I'm so glad I went trough the same problem You have to set the fileUpload param to true!
I'm so glad I went trough the same problem You have to set the fileUpload param to true! $facebook = new Facebook(array( 'appId' => $facebookapi_id, 'secret' => $facebookapi_secret, 'fileUpload' => true, 'cookie' => true )).
Thanks so much for this - saved me after a long time of searching – Lobe Oct 3 '10 at 5:26 If you use this, be aware that user created messages could create unintentional or malicious file uploads. – peterjwest Oct 3 '10 at 13:31.
Facebook have intentionally transformed the POST fields to a GET string using http_build_query() to stop fields beginning with @ being used to accidentally or maliciously to upload files. Here's the GitHub issue. A quick fix for this is to remove the http_build_query() from src/facebook.
Php in the SDK: $optsCURLOPT_POSTFIELDS = http_build_query($params, null, '&'); Becomes: $optsCURLOPT_POSTFIELDS = $params; However if you do this you should take action to filter user generated messages that start with @. For example you could add a space to the front of each message.
If you use graph api to upload the photo it will getting the error (#200) User must have accepted TOS. However if you use old rest api, just changing the url to https://api.facebook. Com/method/photos.
Upload? Access_token=xXXXXXXXXXXX if you use above example.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.