In this article, we are going to learn how you can directly post into facebook page using PHP from your website or through your own platform.
This SDK is a library with powerful features that enable PHP developers to easily integrate Facebook login and make requests to the Graph API.
1.4 – again in “Settings” you will see the App Secret, to grab it you have to click on show button and have to enter your facebook password.
2.2 – create an init.php file and paste below code into it, and replace APP_ID & APP_SECRET with your’s one (see 1.3 & 1.4).
echo 'No OAuth data could be obtained from the signed request.
User has not authorized your app yet.
In my previous post we have learnt How to close a DIV container when clicking outside using Jquery, I know it’s kinda off topic, because in this topic we are going to learn to convert timestamp to time ago in PHP, but it is my duty to expose all those interesting articles so that you can learn more.
Guys If you have used Facebook and you update status on your wall, upload photo or share something on Facebook then after uploading it, It display time as Just Now or you can also see your previous post time, it show like one week or month or year or day ago.
Importance of this System (Facebook like time ago system in PHP)
It is common to show dates on the Web in the format such as Published on January 12th, 2017, or 05/17/2017, 09:40:25 and 2017-09-12.
Each of the above examples shows the full date or time of some kind of activity on web applications – be it a published blog article, or a visitor comment, or perhaps an uploaded video.
After all, they are informative and human readable!