So If I post a status update on Facebook with a photo (public), I want to use Graph Search api to find it.
Here is the link I've been using:
https://graph.facebook.com/search?q=%23tacomaevent&type=post
I am hoping to be able to use the hashtag such as #tacomaevent so I can search for public text and picture post.
Thanks for your help.
I know this is an old question and would like to point out that, as of now, the search you proposed returns a JSON string containing a list of Facebook Post objects, which may have a property named picture. This property will contain an URL of the picture if one is available.
It has many other properties and they're documented here.
Related
is there a way to obtain an URL to a cover of a book when only knowing the book's API?
I have tried two approaches yet.
First, https://openlibrary.org/dev/docs/api/covers which does not work for me since they did not find any covers for the relatively new german books that I need the cover links for
Then I tried the google books API https://developers.google.com/books/docs/v1/using which was more promising. It is possible to search via ISBN there and the Google API found data for the books I'm interested in.
Unfortunately, the google API returns a JSON object. This JSON object contains a link to the book's cover. However, I cannot use Javascript/php or something in my application to retrieve the cover URL from the JSON object.
I can only use HTML and therefore need a direct link to a cover when providing a book ISBN instead of a JSON object containing the URL.
Ideally, a cover URL for a book with ISBN XXX would look like this
https://some_text/XXX/some_text such that I can directly use it as src in an HTML image container.
Does anyone have an idea on how to approach this problem?
Thanks in advance!
https://www.mediawiki.org/wiki/API:Query
From above link please suggest me an appropriate API to fetch/get all the links of See Also section of an article.
For Example:
I want a list of the above 5 links.
There is an API to get the external links associated with an article:
https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Pune&prop=extlinks
Now, coming back to the original question about See Also links - If there is no proper API then how can we extract the same links if we have the wikitext contentmodel.
Example of wikitext:
https://en.wikipedia.org/w/api.php?format=json&action=query&titles=Pune&prop=revisions&rvprop=content
As far as I know, there's no way to do this in a single call, but you can use https://en.wikipedia.org/w/api.php?action=parse&page=Pune&format=json&prop=sections to give all of the sections in an article then iterate through the results to find the index of the section where 'line' == 'See also' e.g. in this case 42 and then use https://en.wikipedia.org/w/api.php?action=parse&page=Pune&format=json§ion=42 to give you just that section.
I am looking to make a call to the wiktionary API (the Russian one in specific) and I would like to try and get particular pieces of information on the page. In my case, I would like to target the table on the right, here right above the picture of the map.
I can use any form of the url to get the data, I just am not sure how to target that particular element.
I think it is impossible (at this moment) to get a declension table by using the Wiktionary API.
I'm trying to get an rss feed of a list of tweets with a given hashtag, including the images that may be attached to the tweets.
I've used several different scripts out there, but none include the media_url entity that I believe I need, according to twitter's docs on API entities. They do include other necessary things like author, tweet description, author profile pic, etc.
I've used labnol's script, no luck.
I'm currently using Twitter-RSS-Parser, which doesn't give me an image link either.
I'm not very familiar with any of the actual coding, just trying to piece together other people's findings.
Is there a way to edit either of these scripts to provide a link to the image attached to each tweet, or any other script out there that already does this?
Thanks!
Those labnol scripts will need the following parameter added to them &include_entities=true
That will ensure that Tweets which have photos will have their entity meta data returned.
I ended up using tweedledee (can't find a link anymore!) scripts, which allow for specific queries and output in JSON. From there I was able to format the JSON data as needed.
I'm building my own Twitter share link as explained here:
https://dev.twitter.com/docs/tweet-button#build-your-own
The URL that I'm sharing will look something like this sample URL:
https://twitter.com/intent/tweet?url=http://www.google.com&text=I%20just%20shared%20my%20link%20using%20#eckroth%20-%20Check%20it%20out:
My question: How can I add text after the URL with some other information? The URL param sticks itself at the very end of the share string:
"I just shared my link using #eckroth - Check it out: http://www.google.com"
I want it to be something like:
"I just shared my link using #eckroth - Check it out: http://www.google.com - Some other text here!"
Sorry, Joel, but you can't do that with the Web Intents API, which is what the sample URL you provided posts to. Check this out: https://dev.twitter.com/docs/intents.
If you scroll down to "Supported parameters", you'll see the description for the url parameter, which states that it will be shortened and "appended to the end of the tweet". So we have no control over where the URL goes if we give it to Twitter to take care of.
That said, you could simply include the URL in the text, yourself. Before Twitter made their own URL shortener, that's how we used to do it. Pass it through http://bit.ly or similar and then include the resulting URL wherever you want to in the text.
Note - the way your self-shortened links will be rendered on-screen in the timeline may not carry the same authority as a URL you pass to Twitter, though, so you may want to do both.
Good luck!