I need to create an app and my plus page id isn't in integer but in my name. I've hovered on the date stamp as instructed by a support here but still showing my +name. How can I get my plus page id in integer? Google is simply not educating people on this!
You can use the APIs Explorer to get a Google+ page/profile ID.
Enter the string name for userId e.g. +GoogleDevelopers and for fields enter id.
Related
I'm implementing a Compony newsfeed on a website and ran into the following problem. The LinkedIn API doesn't provide a direct URL to a company update. Looking at the LinkedIn site there are direct URL's and they're like this for example:
https://www.linkedin.com/company/1441/comments?topic=5849556347070205952&type=U&scope=1441&stype=C&a=5uHW&goback=%2Ebzo_*1_*1_*1_*1_*1_*1_*1_1441
Trying stuff out it seems that the parameters topic, type, scope, stype and a are mandatory for the URL to work.. (goback is the only one that isn't).
Using the LinkedIn API with the Company updates call I'm able to buid the direct url, except for the a parameter. The value is always 4 (for me unexplainable) characters long.
Has anyone ever successfully build a direct URL to a company update or can someone maybe explain the a parameter or how to generate its value?
Updated to new format
You can link directly to any update (company or user) using the following url:
https://www.linkedin.com/feed/update/urn:li:activity:[topic_id]
You can get [topic_id] by getting the last bit of the updateKey in the api response from Linkedin. When updateKey = UPDATE-c7352-6410848097894756353, your topic_id = 6410848097894756353.
In your example that would become https://www.linkedin.com/feed/update/urn:li:activity:5849556347070205952 which links directly to the specific update. The post is too old to work with the new link format
The url used to be
https://www.linkedin.com/nhome/updates/?topic=[topic_id]
Updated thanks to the comment from #sethpollack
For anyone trying to get the topic id from the API response object (as already commented on the OP question), the topic id is the value after the last hyphen of the updateKey property, which can be used with #Daan answer:
"updateKey": "UPDATE-cXXXX-YYYYYYYYYYYYYYYYYY"
Direct URL:
https://www.linkedin.com/nhome/updates?topic=[YYYYYYYYYYYYYYYYYY]
Using the URL format above, get the topic_id by opening the update in its own window/tab, look at the page source code in your browser and search for the string :activity: the long number after the string is the infamous topic_id
I completed the Google + sign in.But after sign in I want to retrieve the inforamation means User first name and lastname seperately.But I retrieve the full name Using disPlayname.But I want first name and last name seperately. So please help any one.Because those values should be passed to one method in my web application.My web application is based on JAVA.(Ecommerce site).Please suggest any code for me.
Instead of using the displayName field in the returned object, you can use the name.firstName and name.lastName fields.
See https://developers.google.com/+/api/latest/people#resource for details and for what other fields are available as part of name.
We are looking to implement rel=publisher to verify our website against our Google+ page.
However, according to the Rich Snippets tool, this only appears to work with a numeric page ID: e.g. https://plus.google.com/103037366582313115962/
However, we have a vanity URL https://plus.google.com/+TheGuardian
How can I find out our numeric page ID based on a Vanity URL?
OK, worked this out:
Go to https://plus.google.com/ as a Google+ user.
Search for your page using the search box
Copy the link location of the search result for your page. e.g. https://plus.google.com/u/1/113000071431138202574
...The last fragment of the URL is your Google+ page id
In order to get the 21 digit ID from a vanity URL, you need to utilize people.get API!
Just enter the vanity URL portion with the plus sign (for example +Name) as the userId here and scroll down to the 'Response' section to get your id.
Go to the G+ page
Press Ctrl+U then Ctrl+F
Type data-oid.
ex: data-oid="101059889519664604142"
You just have to do is right click on on name (page name or person name) select Copy Link Address & paste it in a new Tab you will see the code as my is https://plus.google.com/+InzimamTariq
but when I do that this is in return.
https://plus.google.com/109309640886924591969
hope you like it & it will help you
Go to -> www.Google.com
[Press] +UserName where "UserName" is your user name
(usually your email is UserName#google.com)
Hover over Home in top left for drop down menu
Just below Home you should see Profile <- click on Profile
Check your URL and if should look like this:
https://plus.google.com/u/0/+UserSetUrl/posts
or
https://plus.google.com/u/0/12398987468276/posts
The +UserSetURL is your google+ profile name.
If you have not created your own specific URL / ID then the numbers are your ID.
You should change the Numbers to something easy like MyName or UserID so you won't have to do this ever again.
Note: This is according to UI as of April 28, 2015
My application is complete and work perfectly for Products.
Like i have an "application link" in the Products tab.On clicking, i get the SHOP name and ID of that product.Then i can successfully call the API because
GET /admin/products/#{id}/XXXX.json
by default i had use the "products" in path resolution.
Now the question is, at first I only got the ID with query parameter but don't know from which resource_type this belongs? i.e pages,themes etc.
Answer to this problem is that "you can append parameters to your query string" in Application Links.
Im wondering if there is anyway to interogate facebook data on user interests. i.e. Retrieve the following data sets:
What are the most like interests/Pages on facebook?
Retreive the current users facebook interest and also their friends interests?
Really want to know if we can get facebook global interest/like data and than also if the user connects their facebook account to the site than we can also retrieve their interest data.
Thanks in advance
So you want to implement something like http://www.socialbakers.com/ ?
To get 1) you'd have to periodically poll the API for the public fan count of a known set of page IDs to see the current fan counts ( i think this is what socialbakers do)
To get 2, get the user_likes and friend_likes extended permissions from your users and access the /likes connection of the users whose likes you want to read
Yes you can retrieve user interests from facebook. You just need to include the user_interests permission required in your jsp page.
https://developers.facebook.com/tools/explorer/
If you are using spring social you can generate your own url for /me/interests:
URIBuilder uriBuilder1 = URIBuilder.fromUri(facebook.GRAPH_API_URL + "me" +"/interests");
String s = facebook.restOperations().getForObject(uriBuilder1.build(), String.class);