cant post using php facebook graph api?

i am getting error “Exception occured, code: 324 with message: (#324) Requires upload file” when i try to post an image using php facebook api.

my cpanel php version is php 5.4.42.

my code id

 $response = (new FacebookRequest(
  $session, 'POST', '/me/photos', array(
    'source' => '@'.realpath('wow.png'),
    'message' => 'testing via facebook application'

i know my file path is wrong, how to currect it

Source: facebook

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.