Hi I wanna use klout api to get user's score of facebook or twitter. But I could not make a app like what I did when I am using facebook or twitter api. I have two keys: one is oauth key and one is partner key, what's the difference?? How do I make calls using klout apis? I tried here, but still could not make successfully calls, or even add a login button in my page, could someone help me and give me some sample code please, thanks!
Have you registered for an account and received API keys? A few points:
The OAuth API is moderated. Keys generated for it are not activated until approved. You would not be able to add a login button to your page until applying and being approved for a key.
The V2 API is more open, but still requires you to register at http://developer.klout.com/member/register
You cannot currently lookup Facebook users on the API due to Facebook's Platform Terms of Service.
The samples on the pages are generally incomplete in that they require you to include the key, have an active application profile, and have the callback URL set on that application profile.
Related
I'm experimenting with twitter API, and have successfully authenticated the user.
But i also need a way to get the user interest.
Also followed this documentation. Here I could not find a way to get user interest Or do I need a third party application. Thanks
There is no API from Twitter that provides the interests of an individual user account, even in the Ads API. The Ads API (which you need to apply for whitelisted access to) will enable interest-based targeting for promoted Tweets, but it will not provide user-level interest data.
hi I'm a facebook api php developer. I developed some apps with me/friend . now this return friends only for my admin account. when another user use this app, it retune nothing.
why this return friends only for my admin account.
if should I get special permission how can I get it.
could you any one please help me.
Make app live
You need to make the app and all its live features available to the general public. This can be done by making the app live by going to https://developers.facebook.com, select Apps --> Your App Name --> 'Status & Review'.
Login Review
You might need to do a Login review.
Review is not required to ask for the three basic permissions: public_profile, user_friends and email. In order to use Facebook Login in your app and access additional elements of a person's Facebook profile, you will need to submit your app for review. If your app is not approved or you don't submit for review, people will not be able to use Facebook Login in your app.
https://developers.facebook.com/docs/facebook-login/review
According to Facebook Graph API for Friends you need user_friends permissions which states that:
Only friends who installed this app are returned in API v2.0 and higher. total_count in summary represents the total number of friends, including those who haven't installed the app.
Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app.
Read change log
You can debug me/friends endpoint as well.
I would like to know what are the prerequirements for facebook API to allow a PHP web page to pull the following user data:
name
email
phone
As far as I understand, pulling the phone number requires that your website is whitelisted with facebook / Websense ?
Please advice.
Thank you!
As Facebook uses OAuth, you have to build a so-called login flow. See the docs at
Facebook Login for the Web with the JavaScript SDK
Manually Build a Login Flow
Within this flow, you have to request permissions from the user. For your use case, you'll need
public_profile
email
There's no chance to get the phone number out of the Graph API.
I want to use magento rest api authorization for my web application customers, I found in docs that there is /customers/:customerId request, to get information about user, but I can't understand, how to get customerId to make this request. Is there such a method in Magento REST API and if not, how I can get authorized customer Id via REST API.
There is a REST service to get a list of all existing customers and their customerId. Its a GET request to /customers. You can find its description in the REST API docs http://www.magentocommerce.com/api/rest/Resources/resource_customers.html#RESTAPI-Resource-Customers-HTTPMethod-GET-customers
Unfortunately there is no service to authenticate users using username and password that I know of. Not even in the SOAP API that has much more services than the REST API.
I need to retrieve the name, email and picture from a google account.
I am already using the openid to make the user login with it's google acc.
Can I have the picture URL from the openid proccess?
with OAuth I cant'seem to find the right scope to retrieve this information... See this link:
http://code.google.com/apis/gdata/docs/directory.html
there is a list of scopes that you can fetch with REST api to google and I didnt't see the one related to the profile.
Btw, I am using PHP and the openid is already working, but didn't start with the oauth untill I know if I can(and need) retrieve the picture (because email and name already comes within the openid proccess)
thanks,
Joe
It seems that you can retrieve the picture URL with the Google Contacts Data API : see http://code.google.com/intl/fr/apis/contacts/docs/3.0/developers_guide_protocol.html#retrieving_photo
Then you must authenticate your requests with OAuth. If you already use OpenID, you can now use the hybid protocol OpenId/OAuth : see http://code.google.com/intl/fr/apis/accounts/docs/OpenID.html#oauth