I'm trying to create a live stream of comments and disscussions from a twitter, facebook, and youtube page for a social site. Has anyone ever done this before, if so any advice or websites/articles to check out. I'm thinking PHP curl?
You'll probably need permissions from user (application permission request) and then request
https://graph.facebook.com/me/feed?access_token=...
where access_token is token returned from facebook after aproving permissions
Related
I am using Facebook PHP-SDK v5 with Facebook Graph API v2.10 and by other code i am able to get data from facebook page easily, but what i need is to fetch data of user profile wall ,
from facebook Graph Explorer i am able to read those data by generating token. but not by code.
it will throwing error
URL blocked: This redirect failed because the redirect URI is not white-listed in the app's client OAuth settings. Make sure that the client and web OAuth logins are on and add all your app domains as valid OAuth redirect URIs.
and i have used localhost url in the app oAuth setting as well,
I wanted to read someones wall post feed after authorize him by my applications, i dont want to read my own profile like api('/me/feed'
does anyone help me in this case.
Scenario: While logged into facebook, I click on a share link on my site. It pops up the dialog to post to my timeline.
Question: Is it necessary to create an app to do this? Or does facebook offer an app that will request permissions to do this for you?
My current plan is to use the facebook graph API with the php sdk to ask for the proper permissions, build the timeline POST request with an access_token. I just wasn't sure if there was an easier way to do this. Thanks!
Graph API is all that you need. Your server needs to support OAuth 2.0 authentication.
Add the URL of the script that handles this in the configuration page of your FB app.
Request for an access_token with offline_access permission. (offline_access allows you to post to user's timeline even when he is not logged on). With the access_token, do a HTTP/POST with params message and access_token to https://graph.facebook.com/me/feed as shown here.
NOTE: FB is deprecating offline_access from May 1, 2012. Check this.
my company have about a hundred of facebook app and more than 200 facebook pages.
My job is to get via FQL insights all statistics about applications, pages, and domains.
After many tries it seems my code don't work because my app need to have "manage_pages" permission from all facebook pages administrators, because my apps need to impersonate them.
Even if I can contact directly my administrator they need to authorize all my applications for every page one by one.
So I think I have to write a php page able to automatically get authorization from administrators for all pages under their responsibility.
Please consider, I'm able to have a list of all pages id and app id.
Does anyone please suggest me how automatically let applications to get manage_pages permissions in a straightforward way?
Do you know if there are PHP examples?
Thank you for your time
You could do it by automating curling through the login screen. When you go after an authorization token the user is required to enter credentials via a login screen. If you have user/pass words you can curl through it I suppose. While your getting permissions make sure to get the offline access permission too, so that you receive a persistent token that can be used when the account is not logged in. Good luck.
Edit: The last time I did this, I kept notes on the whole authentication process if you want a copy PM me and I'll email them to you. They are step-by-step getting authorization tokens to write to a fan page.
Use the JS SDK to login the admins into your app, with the offline_access and read_insights permission.
The read_insights permission will allow you to access the insights for each page and application.
The offline_access will give you a permanent access_token that you can use to update the insights without having to wait for the admins of the pages and apps to log-in again.
Store the insights in a database, so you can keep the insights in memory without having to query the APIs all the time (it's time consumming)
It's basically what Social-Insights is doing (http://insights.social-insights.net/) and it's workign pretty good.
Aarg, can't find a good answer to this question:
How can I auto-login on Facebook (knowing the username/password from a user) and then post a message on the wall? I already downloaded facebook.php, base_facebook.php and other files, but I don't how I can get this working...
You will need to create a facebook app. This will give you the appId and secret that are required to do most things with the graph api.
You don't even need the username and password of the user, they can authorise your app to post to their wall.
You can find all the info https://developers.facebook.com/docs/
You can use the facebook graph api and oauth to post on the facebook wall of a user.
Facebook's API does not support authentication via a user's email and password. You don't need facebook.php, or base_facebook.php. What you need is PHP and cURL to mimic browser HTTP requests and login to Facebook manually.
Try logging in to http://m.facebook.com and use Firefox's Firebug Addon or Chrome's Developer Tools to monitor browser requests.
I'm looking for some advice on if the following is possible
I know it's possible to upload videos via the facebook API, but is it also possible to tag users to those videos? It seems you can with photos, just not videos?
Is it possible to run an application on my facebook account which a visitor can give permissions to access their account video section, instead of having the user install the application to their account?
Here's what I'm trying to do
Video archive -> User visits a profile with an application installed, selects something, and the application then posts the video to it's own video section on the account that's stored on facebook, and tags the user who requested it
I'm basically wanting to bypass having the user install the application on their profile, and trying to have just one application running on a "host" profile.
If that makes sense, if not, please request some more information. The facebook API system is pretty much a minefield for new developers
Using the Facebook Graph API it does not currently seem possible to tag a user in a video. Facebook are still migrating their old APIs to the new Graph API format, so it seems likely that this will be an option in the future.