Set Transient in wordpress to get tweets - twitter

I am following a tutorial to get embed tweets here
but no luck, result No tweets found.
i just changed the username to my, what i doing wrong?
need to configure something in functions.php or in database??
or setting set_transient(); ?
(i put the code in footer)
please help

Related

How to get result from youtube api search morethan 5?

I tried to get youtube search from this link
https://www.googleapis.com/youtube/v3/search?part=snippet&key={my_api_key}&q=plane
it's work good. But i want to know how can i get result morethan 5 ?
ref : https://developers.google.com/youtube/v3/docs/search/list
Just in case anyone needs a solution for this.
You just need to add &maxResults=50 (to get a maximum of 50 results of course) at the end of the link / API call.
The person who asked the question was using &max-results... and not &maxResults... which is why it did not work.
The only thing you need to set here is maxResults. Now, if you're still getting 5, the problem maybe that there's really no other videos to list or your search filter is wrong.
The nextPageToken solution do not apply if you have maxResult set to 50 but are only getting 5. The problem could be your filter or the number of videos available.

How do I get a feed of the 10th page on realbusiness.co.uk?

I'm trying to pull the 10th page from realbusuiness.co.uk rss feed. I have tried several variations of the url but I can't find the correct one like so:
http://realbusiness.co.uk/feed/page10
http://realbusiness.co.uk/feed/paged10
http://realbusiness.co.uk/feed/?page10
http://realbusiness.co.uk/feed/?paged10
http://realbusiness.co.uk/feed?page10
http://realbusiness.co.uk/feed?paged10
Any idea on what the correct url would be?
Thanks in advance!
I think you missing = on url. Because the wordpress feed page url is at http://realbusiness.co.uk/feed/?paged=number of page in your case maybe http://realbusiness.co.uk/feed/?paged=10

What does the number refer to in link

I am looking at old posts to try and figure out what's wrong with the hackbook example at https://github.com/facebook/facebook-ios-sdk/tree/master/sample/Hackbook .
In this post, Post image to facebook using graph api , it seems that his problem was 117795728310/photos" instead of me/photos
What does 117795728310 refer to? I'm assuming it's not his app id. If it's his user id, where can I find out what mine is?
Thanks,
Mich
The paths of the open graph usually start with the id of the object and then it's connections.
For example: 6708787004/feed will return the feed for the South Park page.
The id can be replaced with a "username", so the above example is the same as "southpark/feed".
And "me/feed" is the same as "YOUR_USER_ID/feed"
You can get your id in all kind of ways, it will be easier to just check "/me" in the graph explorer.
The id you posted is not of a user but a page (graph explorer)
It does look like a User ID.
Go to http://www.facebook.com/note.php?note_id=91532827198 to see how you get yours

Magento Categories URL

cant seem to find anything related to this on Google. Though maybe I’m not searching the right keywords.
On Magento 1.6 I have a category I created. For example, "test". The seo url for that would have been:
mysite.com/test/
I then deleted the category(stupidly) and later recreated it. Now the category is called:
mysite.com/test-1/
Is there any way to reset the internal index or something so that I can once again have the url:
mysite.com/test/
Hope that makes sense and someone can help.
Thanks a lot for reading.
have you tried to write "test" in the "URL Key" field ?
This behavior has something to do with the "redirect 301" flag.
Bye
Giuseppe

Twitter: Number of tweets OR get more tweets

I would like to know how can I get all tweets from a certain hash tag?
I am currently using the following code:
xhr.open("GET","http://search.twitter.com/search.json?q=%23PrayForJapan");
This only returns me 15 tweets. Does anyone know how to make it return more?
Also, I have got a code to get me the tweets of a certain screen name, this only returns 20 tweets, how can i ask the following 20 tweets?
The code i used for that is:
xhr.open("GET","http://api.twitter.com/1/statuses/user_timeline.json?screen_name=Eminem");
I'm using titanium to create this, but I don't think that is an issue?
Thanks!
You can usually add count=x as parameter to the query string to get up to x tweets (for the search api it seems to be rpp). Query string parameters are added to the base url via ? and each individual parameter is then separated by & as in http://api?user=1&count=4
Most of the time, it is better though to remember the last tweets and then add ?since_id=x as this way you only get tweets you did not see before.
Have a look at the api documentation.

Resources