php for instagram feed - php

I'm trying to embed an instagram feed on a webpage. I have gone through the steps on the instagram developer page to get an access token but I don't know what to do with it. Is there php code that you can suggest that I can use to create a feed by adding the user id and the access token?

Look at results here, Google is your friend :)
Example

Related

Get Facebook Marketing API Access Token Using Ads PHP SDK

I was wondering how does one get access to the FB Marketing API Access Token using the Ads SDK. Currently am I manually doing this:
https://www.facebook.com/dialog/oauth?client_id=<APP_ID>&redirect_uri=
<http://yourwebsite.com/>&scope=ads_management,manage_pages,publish_actions
Which returns a code like this:
?code=<your auth code>
Then I input into the next URL provided by FB:
https://graph.facebook.com/<API_VERSION>/oauth/access_token?client_id=<APP_ID>&
redirect_uri=<http://www.yoursite.com>&client_secret=<APP_SECRET>&code=<CODE>
This gives me the access token, but am assuming there is a better way to get the access token using the Ads PHP SDK provided? I hope. If anyone can help. Please share, thanks!
You can extend an access token to be a 'long-lived' server-side token. This extension will give it a lengthy expiration. More info here: https://developers.facebook.com/docs/facebook-login/access-tokens#long-via-code
You can also authenticate via the PHP SDK as you mentioned. Get started here: https://github.com/facebook/facebook-php-ads-sdk/blob/master/DEVELOPER_GUIDE.md#authentication-

LinkedIn auto login script in PHP

How can I create a LinkedIn auto-login script using PHP? I hear about LinkedIn API, is an easy step by step tutorial for this?
UPDATE: I want my script to be: Once I open my page, it will automatically log in to LinkedIn.
POST your messages to users wall using REST API and obtained token
http://developer.linkedin.com/documents/exchange-jsapi-tokens-rest-api-oauth-tokens
Hope this may work.

Easy way to get facebook statuses from a particular page in PHP?

I need to grab the statuses from a Facebook page via PHP to display on the page. I don't want to have people logging in to facebook just for my script to grab the statuses from the page since it is a public page and isn't restricted. I have the Facebook API for PHP in my projects directory but have no idea how to use it to do what I want it to. Could someone give me a code example of how I'd do this? Thanks!
It's really a straight forward task if you follow the documentation. Since /PAGE_ID/feed requires any valid access_token, your app access_token is enough to get the data:
Open the Graph API Explorer (I'm querying coca-cola/feed)
Get an app access_token from the Access Token Tool and use it instead of yours
You're done!

Facebook Graph API with PHP connection

i want to display facebook friends on my website and i want to use facebook graph api for that,
please
Thanks
Prakash
Facebook Graph API with PHP connection
This tutorial might help: Facebook PHP SDK
It includes example as well.
Generate an access token for yourself by going to https://developers.facebook.com/tools/explorer and then you may be able to retrieve your friends by accessing https://graph.facebook.com/_YOUR_USER_ID_/friends?access_token=xx and then the profile images can be retrieved using the following graph API call - https://graph.facebook.com/_FRIEND_PROFILE_ID_/picture?type=square
Of course, for more details, the Facebook Documentation (https://developers.facebook.com/docs/) is where you go to.

how to get a page owner feeds by facebook graph API

i'm trying to get a facebook page feeds using graph URL. but i want to get only the owner data ... i don't want anything not from the owner. i can do that using PHP. but i'm asking if i can do that using the same graph request.
Thanks
Just use /posts instead of /feed

Categories