Quantcast
Channel: Active questions tagged news-feed+facebook-graph-api - Stack Overflow
Viewing all articles
Browse latest Browse all 60

Facebook Post to feed asynchronously

$
0
0

I'm using Facebook graph API to post to Users Friends Feed after some action in my App. Now, my code iterates over the friend list and make a POST call with appropriate message and link in each iteration. This makes the processing very slow as it waits till the Post is successful and then proceeds.

friend_list = graph_get("me/friends") for friend in friend_list: res = graph_post(friend['id']+"/feed",message,link)

What is the standard way to do this and how should we optimize it. Is there any way to make these POST Asynchronous?


Viewing all articles
Browse latest Browse all 60

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>