how to post something on user wall ( may be a php processed image or something text ) when user clicks a button. As an example suppose a facebook user installs my app, then it shows some processed image then if the user wishes to publish he clicks the publish button and get published to his wall otherwise it will not. The difficulty I faced is to to go from one page to another ( as going from index.php to upload.php) ,transferring access_token,and how to make api call to upload the image from upload.php should i have to make upload.php as index.php so as it can re authenticate the user?
Share
You sound really confused.
There should be no difference if you name your file
index.phporupload.php.I don’t see why you would need to manually take care of the access token. Use the PHP SDK, and it is done automatically for you. The PHP SDK uses the
$_SESSIONvariable to store it. Otherwise, you could pass it in the URL as an argument like:I’d not recommend that though, since it makes your site very vulnerable to attacks.
There is a complete example in the PHP SDK documentation: