I'm developing an application that uses the LinkedIn API (and other social networks') to retrieve the messages you receive in yout timeline and get other user's information.
I know that I can't get that information over a user since the last API update thay made, but I'd like to know if that's possible from a company page. I can get the updates I've made on the page and my user profile but what I want is to get the user's profile from a person that makes a like in one of my publications (to put and example).
Is that possible like with the Facebook API and Twitter API or I can only access to information from the user that is authenticated in the application?
Thank you.
In general, only You can get that information with authenticated users in the application.
As for LinkedIn, I don't know if you know that from May 12 (if I remember correctly) LinkedIn API is changed.
Changes in Linkedin API
Related
Good morning all,
I must create a site in PHP where we enter the url of the facebook profile, and then it must retrieve some information from the profile:
The profile picture
The name
If the profile and verify
I wish I could do it without this connection.
What to give me a clue?
(I succeeded with tiktok, instagram, etc.) but with facebook it's been a while that I'm looking for the solution
This is not possible for 2 reasons:
Scraping is not allowed on Facebook, you must use the API for accessing any data
Any user data is unavailable with the API, unless the user authorizes your App to access his data
The correct way to implement verification is to implement login with the Graph API and let the user authorize your App. Btw, this still does not mean you can verify his profile url, because you will not get the real URL, not even with authorization.
I'm working on a social hub page which aggregates info from all social networks. Currently I'm trying to fetch infos from one specific foursquare venue.
To get the information I want, I have to use an access token and therefore authenticate my user. In my case this would always be the same (my own) user.
Is there a way to get an access token with my username/password without having to redirect to the authentication page?
I couldn't find any answers here so far, thanks for your help!
Update:
I just discovered exactly what I want to implement on http://de.puma.com/creativefactory - if you scroll down you can see foursquare information on the bottom right corner, that's exactly what I want: Display how many users checked into my venue and the last persons who checked in. How did they do that, there is no auth dialog required? Thanks again!
Unfortunately, this is explicitly not allowed for security reasons. Although it may seem safe in your case, we don't generally want to support 3rd-party applications handling our users' passwords when OAuth makes it unnecessary. This is the same policy that many other large social networks have.
If you're just looking for venue information (e.g. just information about a venue and NOT any user information) then you don't need to have an authorized user. The venues API can be accessed with only your client ID and client secret. See the Foursquare API documentation..
Some of our endpoints that don’t pertain to specific user information,
such as venues search are enabled for userless access (meaning you
don’t need to have a user auth your app for access). To make a
userless request, specify your consumer key's Client ID and Secret
instead of an auth token in the request URL.
You should be able to get the required information without user authorisation.
Just create an app and you will be provided with a client id and client secret, you can then use these to access the API.
Here is the required venue API string format:
https://api.foursquare.com/v2/venues/[VENUE_ID]?client_id=[CLIENT_ID]&client_secret=[CLIENT_SECRET]&v=20120101
In the returned json you should find:
"hereNow":{"count":x,"summary":"x people here","groups":[]}
I'm building a Website (PHP), API (PHP) and a native iPhone app. I want users to login with their Facebook account so they can post reviews / upload photo's via the Website or iPhone app to our server/database. This will also save me time to create a complete user registration system.
I'm trying to figure out how to create a uniform architecture for this kind of a solution. I'm thinking about the following thing:
Registration:
Create a database table containing my users (table will have these fields: id, facebook_uid, firstname, lastname)
iPhone App login scenario: user logs in via Facebook; presses on allow to give permission for my app; returns to App with access_token (which is stored on his phone). After that makes an call to my own API to register the user (if not registered yet in database) with these information: facebook_uid, firstname and lastname.
Website login scenario: user login via Facebook; redirects to my configured return url and registers the user (if not yet in database) with these values facebook_uid, firstname and lastname
Posting a product review
Iphone App: Make an call to my API with the following parameter input: review_text, facebook access_token. My API will then make server side the API call to facebook to get facebook_uid. When I have retrieved the facebook_uid I insert into to the database the review record for this facebook user. (Instead of sending the Facecbook access_token I could have sent directly also the facebook_uid value to my API. But I thought this may be less secure, because anyone could then insert review on behave of other user if they know their facebook_uid)
Website: With help of the Facebook Connect PHP library FB login session is available so I can insert server side directly the review by reading the sessions facebook_uid.
Is this a correct and safe way of using Facebook as login for your own platforms? Or are there any other PHP modules/libraries I could use to simplify this?
Facebook has an existing api here
http://developers.facebook.com/docs/guides/web/
The page also contains a tutorial on how to implement this
For iPhone specific facebook login please look here
https://developers.facebook.com/docs/mobile/ios/build/#implementsso
I am in a similar scenario. Keeping the access_token on the phone seems like a good idea, then passing this via your API to verify the user on your own database seems like a good idea as well.
Wouldn't it be just as safe to encrypt the access_token and store it in your own database and check against that as opposed to constantly pinging the Facebook API i.e.:
Login via Facebook, get Facebook UID and access_token.
Store both the UID and/or access_token in your database encrypted via md5 / sha.
Each time your API makes a call, pass the access_token and check it against the one stored to verify the call?
I have created a facebook application.
It's working only for my account means i can send message on my account only.
How it will be possible that users inputs their access_token and message and that
will be authenticated via that access_token and message should be
sent on that particular user's account through my facebook application.
In sort I want to post status on facebook using only access_token of a user.
I have done same for Twitter and that is working fine.
Can anyone help me?
Here's the process I have used for one of my Facebook applications to make wall posts from a user [of my application] to one of their friends:
Authenticate the user via the process described in the Authentication section of the documentation
Store the access_token (keyed against the Facebook user ID) returned after your call to https://graph.facebook.com/oauth/access_token
When you need to post to the wall of one of the user's friends, lookup the access_token you stored in Step 2 above and call the Graph API (as described in the "Publishing" sub-section of the Post section of the documentation) with it.
Please note: you will need to request the 'offline_access' extended permission to use the token after the user has logged out of Facebook. Also, Facebook do impose limits for the number of requests you can make per user per day. Theoretically, this should grow with your application but I've experienced problems before where this hasn't happened. You can check your current limits at:
http://www.facebook.com/business/insights/app.php?id=[app_id]&tab=allocations
I'm a new Facebook developer. I'm creating a game and want to include a leader board.
I'd like to build a fairly detailed leader board including the following information:
1) Name
2) Pic_Square or profile_pic
3) A general location (UK, USA or LONDON, NY)
4) Score
I'm aware of how to get a current users basic information from the either the old REST API or the Graph API. However from what I understand of the Facebook rules I can't store the information I want to use from the API.
This leads me to the conclusion I should be polling the Facebook API using the information I can store (FB user ID's). When querying the API for specific user ID's (the ones for the test users I have generated) API methods (user.getInfo and fql.query) return either just the ID of the user or the fields I have requested with null values.
When querying my own ID I can access all the data.
Are there any methods to obtain publicly available data via the any of the APIs?
Thanks for your help!
Ben
Why do you think that you can't store this info? On the user table page it even says:
You can cache this data and subscribe to real time updates on any of its fields which are also fields in the corresponding Graph API version.
If you request offline_access permission you would be able to get user information even when a user is not currently logged in to your app.
You should be able to get any user public info without permissions or access token by going to:
https://graph.facebook.com/<USER_ID>
To display avatar you can use this code:
<img src="https://graph.facebook.com/<USER_ID>/picture"/>
I don't think you would be able to get location without requesting extra permissions.