I have added example for posting content on user's wall.
- PHP version 5.4+
Go to http://developers.facebook.com and Create a new app.
Add your site url
Go to developer dashboard
Get Your App Id And Secret
Open up index.php
Init class with your app id and app secret
FacebookSession::setDefaultApplication('APP_ID', 'APP_SECRET');
Set your callback url containing your website domain in app settings
$helper = new FacebookRedirectLoginHelper("YOUR_CALLBACK_URL_HERE");
In our case, we are handling callback in same file. Thats pretty much it! Let me know if any queries.
- You will be able to test your app only with your account.
- In order to test with other accounts you must submit your app for approval.
- Only After approval you can make your app live.