Note that there are some explanatory texts on larger screens.

plurals
  1. POAttach image to Facebook event (php sdk, rest or graph api)
    primarykey
    data
    text
    <blockquote> <p><strong>Possible Duplicate:</strong><br> <a href="https://stackoverflow.com/questions/5870330/add-picture-at-facebook-event-with-graph-api">Add picture at facebook event with Graph API</a> </p> </blockquote> <p>I have been trying for a good few hours now to create an event through the Facebook API with an image. So far I have been able to create events though both the Graph and Rest APIs without images, but have been unable to attach any images.</p> <p>I believe the REST API is the only API which supports attaching images, but the documentation is pretty poor and the php-sdk docs or code do not help much either.</p> <p>My latest attempt is over at: <a href="http://promos.uk.glam.com/splash_test/example.php" rel="nofollow noreferrer">http://promos.uk.glam.com/splash_test/example.php</a></p> <p>With the code: <a href="http://pastebin.com/8JC8RAck" rel="nofollow noreferrer">http://pastebin.com/8JC8RAck</a> (note the "require facebook.php" is the php-sdk - <a href="http://github.com/facebook/php-sdk/" rel="nofollow noreferrer">http://github.com/facebook/php-sdk/</a>)</p> <p>Note line 93 ( "if ($uid) {" ), this is supposed to be "if ($me) {", which was working for an hour or so, and then stopped working (no changes to the code that populates $me), odd.</p> <p>So, the event creation code is lines 96-99 and as it is now it creates an event without an image, but as soon as I put back in the commented out code (line 98, ) it fails to do anything.</p> <p>Does anyone know how to create events on facebook though the API with images? If so, please help me out here! I have no problems scrapping all this code if there is another solution, although I have to use PHP or Javascript.</p> <p>Thanks all</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload