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+ post length issue #92

Closed njtam closed 9 years ago

njtam commented 9 years ago

Hi Pavel,

Thanks for developing this awesome plugin! I have a question. I'm using the plugin mainly to display Google+ posts and ran into the issue where posts longer than about 100 characters would not display. Other social networks are fine. Just Google+ has this issue. I tried changing the length value under General Settings and in jquery.socialfeed.js, but no luck there.

Please let me know if there is a way of fix this or maybe there's something I overlooked?

Thanks so much, NJ

pavelk2 commented 9 years ago

Hi @njtam,

Thank you very much for pointing this out.

From my tests - I still receive the posts which have length longer than 100 characters, but they are still shortened to 100. I checked the socialfeed.js code to make sure the shortening function works in a similar way for different social networks. It does work in the same way. I found that the data from Google+ comes already shortened: https://www.dropbox.com/s/gftpdrzw5gmn4fq/Screenshot%202015-05-27%2010.18.36.png?dl=0

I checked the Google+ API docs: https://developers.google.com/+/api/latest/activities/search It is written there:

The title of this collection of activities, which is a truncated portion of the content.

Keeping this in mind I believe that Google+ API retrieves the titles already shortened to 100 characters.

njtam commented 9 years ago

Hi Pavel,

Thanks for your quick and helpful response!

Is there a way to display the actual content (full text) of the Google+ post instead of the search result title? That way I won't have to be limited to a 100 characters and can then control the length of the text.

Please let me know. Thank you!

pavelk2 commented 9 years ago

Dear Njtam,

Unfortunately so far I am not aware of such a solution. Please google it specifically and checkout what people from stackoverflow-similar websites say about this issue.

On Thu, May 28, 2015 at 12:14 AM njtam notifications@github.com wrote:

Hi Pavel,

Thanks for your quick and helpful response!

Is there a way to display the actual content (full text) of the Google+ post instead of the search result title? That way I won't have to be limited to a 100 characters and can then control the length of the text.

Please let me know. Thank you!

— Reply to this email directly or view it on GitHub https://github.com/pavelk2/social-feed/issues/92#issuecomment-106095229.

njtam commented 9 years ago

Thanks for your help Pavel! I'll keep searching.