diff --git a/plugins/community_hub/facebook_stream/codfish_facebook_api.rb b/plugins/community_hub/facebook_stream/codfish_facebook_api.rb index 452765b..c08c962 100644 --- a/plugins/community_hub/facebook_stream/codfish_facebook_api.rb +++ b/plugins/community_hub/facebook_stream/codfish_facebook_api.rb @@ -41,7 +41,7 @@ while true message += i['message'] end if not_blank(message) - if mostRecent == "" or mostRecent > i["updated_time"] + if mostRecent == "" or mostRecent < i["updated_time"] mostRecent = i["updated_time"] end diff --git a/plugins/community_hub/facebook_stream/facebook_stream.rb b/plugins/community_hub/facebook_stream/facebook_stream.rb index 8d60775..b56297c 100755 --- a/plugins/community_hub/facebook_stream/facebook_stream.rb +++ b/plugins/community_hub/facebook_stream/facebook_stream.rb @@ -5,6 +5,7 @@ require 'json' #Aviso 12/04/2014 #token que só deverá expirar em 59 dias @graph = Koala::Facebook::API.new('CAAD8cd4tMVkBAO3sh2DrzwZCDfeQq9ZAvTz7Jz24ZC26KtMfBoljqaXhD2vBV1zpP0bjrpxXUBzJvKKcFzOm6rMG9Sok7iNVUaxt5iwr7dfMqCvHpMboKpqrqgeLrfCH5ITVTAdezA6ZBSr9iOJrqyCSOYfui0zTmbXJ3FqtshwNRrRy4NPH') +# https://graph.facebook.com/v1.0/search?q=%23dilma&type=post&access_token=CAAD8cd4tMVkBAO3sh2DrzwZCDfeQq9ZAvTz7Jz24ZC26KtMfBoljqaXhD2vBV1zpP0bjrpxXUBzJvKKcFzOm6rMG9Sok7iNVUaxt5iwr7dfMqCvHpMboKpqrqgeLrfCH5ITVTAdezA6ZBSr9iOJrqyCSOYfui0zTmbXJ3FqtshwNRrRy4NPH #feed = @graph.get_connections("participabr", "posts") -- libgit2 0.21.2