Twitter REST API Retrieve user interest - php

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.

Related

Seeking further validation that my research on Instagram's updated graph API through Facebook is correct

I'm aware that Instagram has been phasing out their Platform API in favor of the Instagram Graph API through Facebook, except for select non-Business and non-Creator accounts (for which Instagram still refers developers to their Platform API); even though I've researched these use cases individually, this is my first time interacting with these APIs, and before I spend the time developing, I'd prefer additional confirmation from the development community regarding if my research on the following use cases is correct:
1) Post content on authorized users' behalfs
-> possible only for authorized Business and Creator Instagram accounts (linked to a Facebook Page) via the Instagram Graph API, and not possible for general Instagram Users
2) Retrieve a list of followers of an authorized user
-> I didn't see anything about this functionality in either API
3) Retrieve a list of followers of personal Instagram account
-> I didn't see anything about this functionality in either API
4) Retrieve a list of pages an Instagram User follows
-> I didn't see anything about this functionality in either API
5) Query media objects based on hashtag
-> possible via the Instagram Graph API
Any additional input is appreciated; there are many other use cases I've confirmed independently, but these were my remaining questions.
Answering your questions:
1) At the moment it's not really possible unless you are Facebook Marketing Partner or Instagram Partner. You can find more about it here: https://developers.facebook.com/docs/instagram-api/guides/content-publishing Content publishing is closed beta only for those members and Facebook is not accepting any new applicants now.
2) & 3) & 4) I'm afraid it's not possible either. You can only get general number of following/followers, but you are unable to list them, for instance if you want the list of usernames etc.. It is both for Instagram legacy API and for Instagram Graph API.
5) Yes, it works with Instagram Graph API but it has some limitations (listed here: https://developers.facebook.com/docs/instagram-api/guides/hashtag-search )

Post on Google + Stream using google + api or any other method [duplicate]

I want to share some information in Google+ wall from my application.
For that I go through the Google+ API. In that API they are mentioning how to get access token of a particular user, but they do not mention how to post in users wall using the access token.
Well, Google+ doesn't have a "wall," it has "Streams." The proper term might help you find better search results. Either way, unless you're a Google partner, the news isn't good:
The API is currently limited to read-only access. From the API website:
Note: The Google+ API currently provides read-only access to public
data. All API calls require either an OAuth 2.0 token or an API key.
Because it's read-only, you will not be able to update or post any information anywhere through the API -- you can only use it to pull basic information like profile and activity details.
Given that access to the API may change over time, I'll try to keep this answer up to date with information about news or changes related to write access.
News & Updates
2015-04-28: Google+ Domains API was announced way back in August 2013, but somehow I missed its relevance to Google+.
The Google+ Domains API allows Google Apps customers and ISVs to take advantage of enhanced Google+ APIs to build tools and services that can be used in a variety of ways.
No, it does not provide full write access to a user's Google+ profile, but it does give you minor advantages over the Google+ API v1, at least within a domain. This one's mainly for mobile app developers.
2015-01-21: I have revisited many of the sources linked in this answer and searched for news regarding API changes, but Google has been quiet.
2014-03-12: Various discussion threads on Google+ about write access (or lack thereof):
Discussion thread by Jeff Dwyer
In-depth discussion of the topic by Thor Mitchell (the Google+ team member mentioned in Update 6)
2013-12-03: The issue thread from UPDATE 1 has finally been responded to by a Google+ project member. Additional discussion regarding write-access to Streams is taking place intermittently on the Developing with Google+ community page.
2013-07-05: A developer named Eric Leroy has built an "unofficial" JavaScript library that provides read/write extension to the Google+ API.
via Google+ XHR Hack = w+ (Add/Post)
2013-05-14: A "social media management company" can gain additional API access by attempting to become a Google+ Pages API Partner.
Google+ Pages API Partner Application Form
More third party tools to help manage your Google+ page - An announcement from Eduardo Thuler
Original Google announcement of third party management tools
Here's an excerpt from the Partner Application Form:
The Google+ pages API allows social media management companies to add Google+ page management features into their tool. Access to this API is available through a whitelist, and access is granted to partners on a company by company basis dependent on fit with this API.
Other articles explaining the lack of a write API:
http://mashable.com/2012/08/02/google-to-developers-wont-screw-you/
2013-01-04: Google just announced Google+ History. You can use it to write "moments" (which are private by default) but can then be made public by sharing them directly to your stream and/or your profile. One of the moment types is CommentActivity.
2012-10-08: There's now a duplicate bug post with only a few comments, but you can check there for future updates as well.
2012-06-25: I came across the issue tracker post for Google+ Write Access. The enhancement request status is "New" and priority is "Medium" as of June 25th, 2012. There are some links of interest in the comments.
This might help: I have made this bookmarklet to post links to pages that I liked to my stream:
javascript:location='https://plusone.google.com/_/+1/confirm?hl=en&url='+location
The URL is self-explanatory. If your post content can be served via URL then you can post it like that. The only difficulty is to automate the posting callback from Google but I do not need it, should not be too hard.
If you use wordpress there is a plugin that allows you to post automatically to google plus WP Plugin Post to Google Plus however it's not free, cheap but not free.
You can probably debug it since it's php and see how they do that.
You can now do this. See google's developer docs below:
https://developers.google.com/+/domains/posts/creating
The only thing to be aware of is that the Google+ Domains API only allows creation of restricted posts, and only allows comments to be added to restricted posts.
Writing to Google+ Profile Streams is restricted to just domains.
For example, If you own a company named xyz co and has a domain xyz.com. You can used Google+ Domains API to write to streams. Though that will be restricted to people using same domain and using Google G Suit App for business and is not available for normal Google's gmail.com email ID.
The Google+ Domains API only allows creation of restricted posts, and only allows comments to be added to restricted posts.
For example Jon and Misha are working as employee in xyz co and has associated company mail id jon#xyz.com and misha#xyz.com then they can post to associated domain streams in Google+. Though these post will not be visible publicly and are restricted to be visible to members belonging to same domain. If any post has to be made public, then you have to do that task manually Ref.
If you are looking to post information on Google+ for some business or celebrity then you must are looking for Google+ Page API, which allows you to write post on business page. Though they have restricted here with partners application form that need to be approved for having your access to Pages API, which is very stringent and difficult to get approved.
The Google+ pages API allows social media management companies to add Google+ page management features into their tool. Access to this API is available through a whitelist, and access is granted to partners on a company by company basis dependent on fit with this API. If you are a social media management company interested in getting access to this API, please complete the form below with details about your company's platform. Please answer all questions below accurately; any inaccurate information that misrepresents your tool can affect your company's access to this API. If your company is a fit for this API's functionality, the Google+ team will reach out to the contact provided in this form with next steps. Please do not submit multiple entries to this form.
Other method to post in Google+ is via their Share button, Interactive Posting & Embedded Posting to Google+ Ref.
//Follow this : https://developers.google.com/+/mobile/ios/share/
-(void)shareGoogle{
[signIn authenticate];
[signIn trySilentAuthentication];
}
-(void)refreshInterfaceBasedOnSignIn {
if ([[GPPSignIn sharedInstance] authentication]) {
// The user is signed in.
NSLog(#"%#", [[GPPSignIn sharedInstance] authentication]);
[self didTapShare:nil];
}
else {
self.signInButton.hidden = NO;
// Perform other actions here
}
}
- (IBAction) didTapShare: (id)sender {
[GPPShare sharedInstance].delegate = self;
id<GPPNativeShareBuilder> shareBuilder = [[GPPShare sharedInstance] nativeShareDialog];
// Set any prefilled text that you might want to suggest
[shareBuilder setPrefillText:#"message"];
[shareBuilder attachImage:[UIImage imageWithData:imageData]];
[shareBuilder open];
likeShareBtn.userInteractionEnabled = FALSE;
}
- (void)finishedSharingWithError:(NSError *)error {
NSString *text;
if (!error) {
text = #"Success";
} else if (error.code == kGPPErrorShareboxCanceled) {
text = #"Canceled";
} else {
text = [NSString stringWithFormat:#"Error (%#)", [error localizedDescription]];
}
NSLog(#"Status: %#", text);
}
-(void)presentSignInViewController:(UIViewController *)viewController {
// This is an example of how you can implement it if your app is navigation-based.
[[self navigationController] pushViewController:viewController animated:YES];
}

Is it still possible to use Google OAuth without plus?

I have a working php code which lets users login through Google Api.
The problem is, this code requires users to become Google Plus users.
I use the latest api located at http://code.google.com/p/google-api-php-client/downloads/list and still couldn't find out if I can use the same service for people who do not have and do not want to activate Google "plus".
update: I understand that this might be a 3rd party api question and I also think that this is a question about a popular 3rd party api and this question and it's answers may still help many people out there.
answer of the question: for quick reference, the answer is *Google_Oauth2Service* class
You can use Google OAuth as a mechanism to authenticate users without requiring that those Google users have activated Google+ accounts. See Using OAuth 2.0 for login. This approach relies on requesting the user's identity via the userinfo.profile or userinfo.email OAuth scopes.
You get advanced functionality and social capabilities if you use Google+ Sign-In, and if your users opt for that option, they will be prompted to upgrade their Google account. This approach uses the plus.login OAuth scope, which gets you identity information in addition to other API methods that can be called.
Choosing the approach that works for your app and audience is up to you.
As of june 2015, you have to use the google+ API to set up the sign-in (Other methods were deprecated).
If you want your user to sign-in without a google+ account, you need to specify "profile" instead of "https://www.googleapis.com/auth/plus.login" as the scope as explained here

Is it klout api uncompleted yet? Having issus get data through it

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.

Get number of members in linkedin group?

I am working on a wordpress website where I need to get the number of members in a particular linkedin group.
The person viewing the website will likely not be logged into linkedin, or ever have a profile.
This is simply for a Check out our linked in group and join 12345 other members! type thing.
Is there a simple way to get the number of members in a linkedin group?
This can be PHP using a rest API, a Javascript API, or whatever works as long as it can work with wordpress.
You would pull the group membership totals from the LinkedIn API via the Groups API.
Unfortunately, in order to comply with the API platform guidelines, you can only retrieve and show the membership totals of a group to the user if the user has authenticated your application against the API via OAuth.
Once you have authenticated the user, you can retrieve the information from the Groups API via a call along the lines of:
http://api.linkedin.com/v1/groups/XXXX:(id,name,site-group-url,num-members)
Where XXXX is the group ID.
http://blog.linkedin.com/2011/11/10/groups-analytics/
Can this information be useful for you?

Categories