pavelk2 / social-feed

JavaScript plugin that shows a user feed from the most popular social networks
http://pavelk2.github.io/social-feed-example/
MIT License
960 stars 303 forks source link

google+ hashtag search #123

Open asiriyo-kor opened 9 years ago

asiriyo-kor commented 9 years ago

When you retrieve a hash tag , if you set the limit to more than 20 , 400 error occurs .

https://developers.google.com/+/web/api/rest/latest/activities/search

before>> request_url = Feed.google.api + 'activities?query=' + hashtag + '&key=' + options.google.access_token + '&maxResults=' + options.google.limit;

after>> google_limit = (options.google.limit > 20) ? 20 : options.google.limit; request_url = Feed.google.api + 'activities?query=' + hashtag + '&key=' + options.google.access_token + '&maxResults=' + google_limit;


In some languages ​​do not search.Let's use this method . hashtag -> encodeURIComponent(hashtag)