Buffer is successful media management tool . If you want to integrate buffer into your website ,this tutorial help you .Buffer is also perfect tool for scheduling twitter and Facebook updates .Buffer API has it's own very easy and clean documentation .
You can use a buffer library available on github https://github.com/thewebguy/bufferapp-php .Well buffer doesn't have it's own library .It uses OAuth 2.0 authentication .
Let's get started from creating app on https://buffer.com/developers/apps/create .Submit all details there like name, description and some others . Don't forget to mention there callback url .It allow other users to authenticate themselves.
After successful app registered, you will get client id and client secret and a token . Note down this ,it will require in code.
Now in include the class then create new instance pass in your client id ,secret and callback url.
note: above in my case ,i don't require to put callback url, so i left null.If you searching for a good Web Development IT Training in Delhi/NCR , contact us .We provide real time project based practical training .
.
Class will store the token in session .Find below hard coded token .
Setting profile's id as shown below
Now , Loop over the Id's and post to Buffer, pass an array to updates/create the only part the array that is required the profile_ids the rest are optional
it updates to your schedules on Buffer .
Find below complete code in one place .
If you like this tutorial share this on facebook ,twitter from right side of this page . Also remeber us fior Advance IT course in Delhi ,contact us .We provide real time project based practical training .
.