API Tutorials

Get Facebook Access Token Using PHP SDK v5

Get Facebook Access Token Using PHP SDK v5

In my previous tutorial How to Auto Post on Facebook Using PHP, I have explained Auto Post on Facebook using PHP SDK v3.2.3. Now in this post I will show you, how you get Facebook Access Token using PHP SDK v5.0. Facebook access token is required to post on user’s Facebook timeline/wall. Create Facebook APP: To get the Facebook Access token you need to create Facebook App. To create a …

Continue reading

How to Get User Twitter Access Token

How to Get User Twitter Access Token

In my previous posts I have explained about how to create a Twitter App and get Consumer Keys and your Twitter Access Token. Now In this post I will explain how to get User Twitter Access Token. For this tutorial, we need a Twitter App and consumer key that will communicate with twitter using Twitter API. So please read How to Auto Post on Twitter Using PHP – Part 1 …

Continue reading

How to Auto Post on Twitter Using PHP – Part 1

how to get twitter access tokens

If you post many new topics every day then automated post can be used. But manually posted on social networks is better then automated method. In my previous post I have explained how to Auto Post on Facebook. Now in this tutorial I am sharing how to Auto Post on Twitter using PHP. Twitter provides twitter API to communicate programmatically with it. But you can’t use API directly, so you …

Continue reading

How to Auto Post on Facebook Using PHP

How to Auto Post on Facebook Using PHP

Now a days Facebook App is used by every other website. These websites shares posts automatically to the users wall using these app and users access token. So today I will show how to auto post on Facebook using PHP. You have to create a Facebook app and you need a PHP SDK to communicate with the Facebook API. Then you need to get the Access Token, so the app can …

Continue reading

YouTube Video Information Using YouTube API

YouTube Video Information Using YouTube API

If you want to embed YouTube videos or want to add your video gallery then you can use YouTube API v2 to get all necessary information about the video like video title, description, category, thumbnail and others. In this post I am going to show you how to get YouTube video information using YouTube api. To get the YouTube video information in JSON format we will use CURL and pass …

Continue reading

Get geolocation from ip in PHP

Get geolocation from ip address

In PHP, there is no direct way to get geolocation of an IP address. Therefore we have to use third party API to get geolocation from ip address. There are many paid and free APIs available to get geolocation from ip address. I found a very simple and easy api freegeoip.net. It is a public RESTful web service API for searching geolocation of IP addresses and host names. freegeoip.net API …

Continue reading