If you add a facebook plugin in your site and comment on it, that comments are stored against a url(i.e. your site url) and you can retrieve all those comments by using graph api like below : https://graph.facebook.com/comments/?ids=< URL >.
Here is my question : how to post a comment using graph api for the same url ?
Thanks,Ranjith
Related
I am able to post to LinkedIn via the API and I get the URN/id of the post returned, but I don't know how to get the actual URL of the post using the returned URN. I cannot find the information anywhere in the API documentation.
In case you have a share or ugcPost, the following URL is valid:
https://www.linkedin.com/embed/feed/update/<urn>
or, for embedded content:
https://www.linkedin.com/feed/update/<urn>
as example:
https://www.linkedin.com/feed/update/urn:li:share:<share-id>
or
https://www.linkedin.com/feed/update/urn:li:ugcPost:<ugc-post-id>
Working link from Test Organizations:
https://www.linkedin.com/feed/update/urn:li:share:6743008621090611200
I want to get a number of Google+ +1 for an URL of a article post.
For example I want to get a number of G+ like of Beautydea Magazine.
Is there a way to add my URL post for a specific URL of Google API? Such as Facebook or Twitter.
Here some examples of Facebook and Twitter with the same URL post.
Facebook:
https://graph.facebook.com/fql?q=SELECT%20total_count%20FROM%20link_stat%20WHERE%20url=%27http://www.beautydea.it/orly-baked-collezione-smalti-estate-2014/%27
Twitter:
http://urls.api.twitter.com/1/urls/count.json?url=http://www.beautydea.it/orly-baked-collezione-smalti-estate-2014/
Well if you are doing this on the server side, you could just load the url referred to by iframe of the button
https://apis.google.com/u/0/_/+1/fastbutton?usegapi=1&url=http%3A%2F%2Fwww.beautydea.it%2Forly-baked-collezione-smalti-estate-2014%2F
and read the count from the div with id "aggregateCount". You're out of luck on the client-side with that approach, since you can't load an external html page.
There is no supported API method for getting the +1 count of a URL. You can star the open feature request though.
I have implemented twitter API (oAUTH) by going through this tutorial http://net.tutsplus.com/tutorials/php/how-to-authenticate-users-with-twitter-oauth/ . Its working and I can update my status (which I am guessing its kinda sharing) . The problem I am facing now is how can I add pictures , few words and a link to this $twitteroauth->post('statuses/update', array('status' => 'Hello Nettuts+'));. Something like twitter cards.
Is there another good tutorial which explains and demonstarte all the functions of Twitter API (oAUTH).
Thanks. :)
You can include a link/URL in your status update in the same way that you have included the other words (Hello Nettuts+).
However, you cannot add pictures in this manner - you will need to use the statuses/update_with_media endpoint as opposed to the statuses/update endpoint that you are using in your existing code. You can learn more about how to do this by reading Twitter's API documentation:
https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
And you can see some example code here:
https://dev.twitter.com/discussions/1059
I'm trying to find out whether it's possible to post a new post to a group via the linkedin API and have a link in the title of the post?
I can't find any documentation on what is allowed or not in the title in the documentation here:
https://developer.linkedin.com/documents/groups-api
Do you know if this is possible?
I have seen that it is possible.
An example is here: http://www.linkedin.com/groups/Now-new-website-FoodBarcelona-Restaurants-1446917.S.136723085?qid=90c4aa0a-fc9a-4934-b7e5-3d555133b8e5&trk=group_most_popular-0-b-ttl&goback=%2Egmp_1446917 (not sure if it's visible without being a member).
In the lists of questions the title is the link to the details page, but on the details page, there is a link shown in the end of the title.
Not sure though if that is passed as html or linkedin automatically parses links and converts them to html.
Doesn't look like it; you can test by trying to create a post here:
http://simplelinkedin.fiftymission.net/demo/groups.php#groupCreatePost
When you add any HTML to the tile, the API responds with a 400 error:
com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '\' (code 92) in start tag Expected a quote
at [row,col {unknown-source}]: [3,34]
Logically, I'm not sure how it would, as when you create a post via the API, it posts to a group on LinkedIn.com, and every group post title is itself a link to the full post itself within the group.
I'm using the twitter API, but when I post links they are showing up as text and not links. I haven't been able to find the documentation showing how to post a link that actually works.
If you don't keep the prefix (http://) and just post something like www.google.com, the link won't be picked up.
If the URL contains special characters you need encode it before posting to Twitter so it will be converted to a link:
from urllib import quote
url = quote(url)