news-feed

Autoplay Video in UITableViewCell hiccupps

天大地大妈咪最大 提交于 2019-12-09 01:31:33
问题 I have read most of the questions on StackOverflow for autoplaying videos and I'm able to autoplay them in UITableView , but I'm having few issues like mentioned below scrolling hangs for a second when video starts Video flashes before playing Video does not auto play if I scroll Up What I want is a smooth experience for autoplay of videos like Facebook without using any third party library like ASYNCDisplayKit . All videos urls are from AWSS3 cloud-front URLS. I have also uploaded video of

Search for posts using Facebook Graph Api

不问归期 提交于 2019-12-09 00:17:59
问题 I want to search for posts(news-feed) using graph API for the past 30 days of data? what is the best practice to do that? And does Facebook Graph API has an API limit to limit the request of HTTP requests? 回答1: NOTE: None of the below works anymore. As of version 2.3 of the Facebook Graph API, the search endpoint has been deprecated. Copying from here under "Searching": Searching You can search over all public objects in the social graph with https://graph.facebook.com/search. The format is:

How to retrieve user's newsfeed list (VK.com)?

寵の児 提交于 2019-12-08 09:03:40
问题 I am using following php code : $vk = new VK($app_id, $api_secret); $user_wall = $vk->api('newsfeed.get', array( //'owner_id' => $o->profile_uid, 'count' => 100, 'filters' => 'post,photo,wall_photo,friend', 'access_token' => $o->profile_token )); echo '<pre>'; print_r($user_wall); exit; I am getting error when trying above code. I have successfully completed auth and stored user profile info in mysql table. I notice that when I see Api.Console permission in App> Setting, I see Access the Wall

how to fetch image from RSS feed

南楼画角 提交于 2019-12-08 07:31:15
问题 I am trying to fetch RSS news from a URL http://timesofindia.indiatimes.com/rssfeeds/1945062111.cms But I have a problem in displaying the images from this URL. Only the Title and the date are displaying but not the image. In this image description have some tags, I don't to show them. Only content should display My second question is how can I edit the description fetched from RSS because it is displaying some and tag. I don't want to show them in my news. Only the data should be displayed.

json api graph call does not return anything?

北城余情 提交于 2019-12-06 16:19:35
问题 i am fetching users fb newfeed and i wanted get check wether user has liked the post or not by using user_likes and the problem is that the following code wont return anything : $getlike = $facebook->api("/fql?q=SELECT like_info FROM stream WHERE post_id=" . $id); $checklike = $getlike['data'][0]['like_info']['user_likes']; here is the complete file: testone.php the problem is that the fql and calling user_likes wont return anything. i want to check wether user has liked the post already OR

json api graph call does not return anything?

五迷三道 提交于 2019-12-04 21:12:39
i am fetching users fb newfeed and i wanted get check wether user has liked the post or not by using user_likes and the problem is that the following code wont return anything : $getlike = $facebook->api("/fql?q=SELECT like_info FROM stream WHERE post_id=" . $id); $checklike = $getlike['data'][0]['like_info']['user_likes']; here is the complete file: testone.php the problem is that the fql and calling user_likes wont return anything. i want to check wether user has liked the post already OR how can i get the value for user_likes. JSON from fb : { "data": [ { "like_info": { "can_like": true,

posting a swf in facebook feed through facebook api

二次信任 提交于 2019-12-04 14:04:31
I am using the below array and $feeddata = array( 'type'=>'flash', 'method'=>'stream.publish', 'display'=>'iframe', 'link'=> 'https://developers.facebook.com/docs/reference/dialogs/', 'source'=>'http://www.hackerdude.com/channels-test/swfscout_VideoSample.swf', 'picture'=> 'http://fbrell.com/f8.jpg', 'name'=> 'Facebook Dialogs', 'caption'=> 'Reference Documentation', 'description'=> 'Using Dialogs to interact with users.'); and passing it to facebook->api($userid.'/feed', 'POST', $feeddata ); But in the feed i can see only the image and when i click in the image it takes me to the link, how

Search for posts using Facebook Graph Api

雨燕双飞 提交于 2019-11-30 15:49:17
I want to search for posts(news-feed) using graph API for the past 30 days of data? what is the best practice to do that? And does Facebook Graph API has an API limit to limit the request of HTTP requests? t0mgs NOTE: None of the below works anymore. As of version 2.3 of the Facebook Graph API, the search endpoint has been deprecated. Copying from here under "Searching" : Searching You can search over all public objects in the social graph with https://graph.facebook.com/search . The format is: https://graph.facebook.com/search?q=QUERY&type=OBJECT_TYPE We support search for the following types

Facebook Open Graph API: weird behavior of parameter limit while getting a paginated user's news feed

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 23:43:14
I've written a little script in JAVA, that tests the parameter limit with four different values (10, 100, 1000 and 10000) when querying a user's news feed of Facebook using the Open Graph API and the RestFB client . As you'll see, it has a strange behavior... Scenario: public static void main(String[] args) { // vars DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); FacebookClient client = new DefaultFacebookClient(accessToken); Connection<Post> home; List<Post> postList; Map<String, Post> postMap; int i; // limits to test String[] limits = {"10", "100", "1000", "10000"};

Django-way for building a “News Feed” / “Status update” / “Activity Stream”

家住魔仙堡 提交于 2019-11-28 15:49:45
I'd like to create a reusable Django app that handles status updates of the Users. Much like facebook's "news feed". Use cases includes, for example: A Professor can create an Assignment due to an specific date and every student can see on the news feed that the assignment was created, with a short description, the date that it's due and a link to see the full description . He also can upload a new PDF that he finds interesting for his students. On the news feed, the info regarding this should be displayed, eg, the description of the pdf, an link to download and a link to preview it . A link