w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Facebook - Get & Display me/og.likes in Video application
Here's an example: <?php foreach ( $response['data'] as $data ): ?> <?php $Object = $data['data']['object']; ?> <a href="<?php echo $Object['url']; ?>"><?php echo $Object['title']; ?></a><br /> <?php endforeach; ?>

Categories : PHP

Get Facebook Page Likes all at once in c#
Sadly, there's no way you can access the list of your 53,000 fans through Graph API (neither via FQL). Facebook prevents this list to be accessed to discourage selling fans data to 3rd party companies (and as a subtle way to prevent competition of targeted ads). However, with the Like button plugin endpoint URL (https://www.facebook.com/plugins/fan.php?connections=100&id=XXXXXX) you can parse the HTML and saving the new ones appearing there, iterating a call to the endpoint every X seconds. Just be careful as this is really not allowed on Facebook TOS and you can be banned (or even get a legal complaint) by implementing that. Cheers!

Categories : Facebook

Not getting likes on my webpage from facebook page
You will be needing to get a like button code for your website. Use this website https://support.bigcommerce.com/questions/1308/How+do+I+add+a+Facebook+%22Like%22+button+to+my+homepage%3F It will help you add a like button.

Categories : HTML

Any Method to Get number of LIKES of a URL or PAGE of Facebook?
Yes, you can do this easily with Facebook Graph API. There are two options: if you want to get number of likes of some Page or URL, use this piece of code: https://api.facebook.com/method/fql.query?query=select%20like_count%20from%20link_stat%20where%20url=%27http://www.facebook.com/facebook/%27&format=json NOTE that you need to change the part where i wrote URL that's http://www.facebook.com/facebook The New Graph API provides a minimal pull request code e.g. http://graph.facebook.com/[Type your Page USERNAME here]?fields=likes Here replace [Type your page username] part with username e.g. http://graph.facebook.com/facebook?fields=likes` and it will give you an output like: { "id": "20531316728", "likes": 92990262 } I hope this helps and fulfills your purpose.

Categories : Facebook

An iOS application with a Like button that likes Facebook page
Unfortunately you can't, Facebook graph API doesn't allow to like pages using different apps than theirs. You can only like objects such as photos, urls etc. You can use urlscheme to load the FB application and make the user able to like the page from there.

Categories : IOS

Retrieving 'App Page' category 'likes' of a user on Facebook
You can use FQL and retrieve all the pages with type="APP PAGE" as following select name,page_id,type from page where page_id in (select page_id from page_fan where uid=me()) and type="APP PAGE" This will give all the APP PAGES liked by the user. The prerequisite for this to work is user_likes permission.

Categories : Facebook

How can we make comments and likes ignore the #anchor from URLs so one whole page only has one set of comments and likes?
I know that I'm really late with this, but you can add a the data-href attribute to the facebook like button when you are using the XMLNS version of it, which I can see is being used from the comments section. So for your example you would put: <fb:like layout="box_count" action="like" show_faces="true" share="true" data-href="http://www.humanreligions.info/humanism.html"></fb:like>

Categories : Facebook

Facebook likes is not displaying
have you tried going to your facebook profile and clicking on the "activity log" It lists all your activity whether its shared on your timeline or not. I've found on a site I'm currently working on that the activity is shown there and in order to get it on my timeline I have to select that from the drop down next to the post in the activity log.

Categories : Javascript

how to get friend's likes from facebook
Get pagination section, and parse it to get next_page value, then send a query for it. There's no automatic process or get all method , otherwise spams/bots would be the happiest creature in this world.

Categories : Facebook

Facebook Graph API. How to get likes for comment?
Get the comment ID and make this Graph API request: https://graph.facebook.com/COMMENT_ID?fields=likes The comment ID is in fact the concatenation of: the POST_ID (246595548763188_464132103676197), the COMMENT_ID (464146663674741), which would give in your case: 246595548763188_464132103676197_464146663674741. So, this should work: graph.facebook.com/246595548763188_464132103676197_464146663674741?fields=likes

Categories : Facebook

Facebook box with likes - how to set up count of avatars in the box?
I'm afraid I cannot access FB or FB devs from work but as I recall, this can be done by increasing the height/width attributes. Also, please include code snippets in questions on StackOverflow. Good luck.

Categories : HTML

How to get proper Facebook likes count for URL
The number shown inside the CNN article, which at this very moment is 131, represents the total amount of times that link was shared, liked, or commented on. So, according to the reference, use the following FQL to get that number: https://graph.facebook.com/fql?q=SELECT total_count FROM link_stat WHERE url='http://www.cnn.com/2013/06/14/world/europe/london-underground-lego/index.html'

Categories : Facebook

Facebook Like: specify thumbnail image for likes
In order to make your meta tags dynamic you will need to use backend code, such as PHP or ASP. There really is no other way to make the header of the document dynamic. PHP example: <?php if(isset($_GET['myparam']) && $_GET['myparam']==='big'){ echo '<meta property="og:image" content="http://www.example.com/site/preview_big.png"/>'; }else{ echo '<meta property="og:image" content="http://www.example.com/site/preview_little.png"/>'; } ?>

Categories : Facebook

An answer to the 'how to get Facebook shares and likes of some URL ?' questions
To get likes and shares counts, I use FQL instead of the Graph API (even though I am actually using the Graph API to send the query). But this is not enough : to be able to do so, I had call the rawurlencode() function on the URL I want to get data about. Otherwise, I'll keep getting errors. So, this likes(), the function I am using to have the counts : function likes($url) { $url = rawurlencode($url); $json_string = file_get_contents("http://graph.facebook.com/fql?format=json&q=SELECT%20share_count,%20like_count%20FROM%20link_stat%20WHERE%20url='$url'"); $json = json_decode($json_string, true); if (key_exists("data", $json)) { if (is_array($json["data"])) { if (array_key_exists("0", $json["data"])) { return intval($json["data"]

Categories : PHP

Facebook and Twitter likes number in wordpress
You have a couple of problems with this code: the_permalink() will output the url directly. It will not return anything that can be passed to another method. You should use get_permalink instead. Conversely, your functions return a value, but your usage does not echo the value. This is a poor implementation. Your page load depends on these two urls returning responses. If they do not, your page will load very slowly as it will wait for the requests to fail. Additionally, you will likely run into limits how often you can query the urls. You probably want to stick with the facebook/twitter widgets for this.

Categories : PHP

PHP Code for getting Facebook likes not working anymore
They have removed the open Rest API, to get this you need to implement the Oauth2.0 in your application. The steps involved are : 1) Register your app You will receive a CustomerKey and a Secret Code 2) Use both the Key and Code to receive an accessToken 3) Uses the same url which you are using, along with a new parameter which is accessToken=/*the one you received*/

Categories : PHP

Facebook JS SDK display:page is not working
I encountered a similar problem in the past. Here's the answer I got: The JS SDK is designed to be used on websites (per definition served and accessible over http or https) and we do not plan to support the use of file: or any other protocols. This is consistent with plugins in general, where http/https URIs are usable as identifiers (open graph amongst others), but where file:// URIs are not. You can try initializing the SDK inside a web accessible document including using an iframe - note then that you will have to add logic to ensure correct resizing. As an answer to a Facebook bug report.

Categories : C++

Is there a way to embed facebook pictures on my website, which also allows likes, comments etc?
There's no out of the box solution that I know of - What I would do is build an application on facebook using the facebook javascript sdk to put elements on the site. First thing you'll need to do is get folks to login - Once you've got that, you can display the photos, comment box and like boxes pretty easily, if you're familiar with javascript at all. Facebook also has a bunch of plugins for comments / likes and whatnot, but no photos atm. https://developers.facebook.com/docs/plugins/

Categories : Facebook

Are my test Facebook "Likes" private when in sandbox mode?
As far as I know while an app is in sandbox mode nothing is published to your wider facebook audience. Only developers / testers / admins of the app can see the content you post eg. Likes Check if if your wife is a tester of your app, that might be why she's seeing the likes.

Categories : Facebook

How to get Likes Count when searching Facebook Graph API with search=xxx
The summary is on the likes connection of the post object just call https://graph.facebook.com/POST_ID/likes?summary=true&access_token=XXXXXXXXXXXX there will be a 'summary' element with a 'total_count' field

Categories : Facebook

Facebook restfb using jsonObject stopped getting likes count
on your application account you should have received an alert telling you that the functionality of the API is going to change and you need to make the appropriate changes to your code. this is the blog post The 'count' field was removed from the object. According to the documentation it was moved to the 'summary' section but it looks like they forgot to do so. the only way i know to get the number of likes now is to go through all the like objects they give you (only 25 at a time) until you get to the end and count them youself. edit have a look at this post, aparently the 'summary' is within the 'likes' connection for the post object (i havent tried it)

Categories : Java

Retrieve Facebook likes after October 2013 Breaking Changes
I'll try to answer to myself. 1) Yes, I have to check manually, I just did something like this (in this example I retrieve music likes) $fb_music_likes_ar = array(); $end = 0; $offset = 0; while ($end === 0){ $temp_ar = $facebook->api('/me/music?limit=25&offset='.$offset); $fb_music_likes_ar = array_merge($fb_music_likes_ar, $temp_ar['data']); $offset = $offset+25; if (count($temp_ar['data']) < 25){ $end = 1; } } This of course takes more time than before; I don't understand the reason of the change, if I need all the likes I will end up doing several calls and I don't think it is more efficient... Maybe we can use batch processing to launch several calls? 2) I don't think this is affecting likes retrieving

Categories : Facebook

obtaining info about facebook likes - strange issue
The problem might be from the user not authorizing the app to access the user information. You can use the signed request from the Facebook API to see if the user has liked the page, which will be much more reliable. require 'facebook.php'; $app_id = "app_id"; $app_secret = "app_secret"; $facebook = new Facebook(array( 'appId' => $app_id, 'secret' => $app_secret, 'cookie' => true )); $signed_request = $facebook->getSignedRequest(); if($signed_request["page"]["liked"] != 1) { // Render the blocker page }else{ // Business as usual }

Categories : PHP

Bit.ly link to Number of Facebook Likes and Twitter mentions
If I understand you correctly, you want to take a http://bit.ly/s.... link and get the original, long URL, then find out the number of likes for that long link on Facebook, and tweets containing it on Twitter. Is that all about right? For the first part, you can use the link info API to get the long URL from bitly. It may or may not be "canonical," though. It'll just be what was shortened. So it might have extra campaign parameters. Community Wiki in case people can help with the second two parts of the questions.

Categories : Facebook

Retrieve 'date and time' for Facebook shares and likes?
Sorry, but what you want to achieve is just not available through the present Facebook APIs. The data regarding to likes and shares that you can retrieve about the post is just limited to array of likes with just id and name and shares array with count

Categories : PHP

The number of likes is different between Facebook (website) and the graph-API. Something or someone has disapeared?
This seems to be a bug, I filed it for you here: https://developers.facebook.com/bugs/512623435469602 you can subscribe to follow it.

Categories : Facebook

Gigya: Retrieving number of facebook likes for an article or component
See socialize.getProviderShareCounts - http://developers.gigya.com/020_Client_API/010_Socialize/socialize.getProviderShareCounts

Categories : Facebook

Direct link or html code to get facebook likes by cliking in a picture
I researched this as well but I can confirm you that, since this could be easily abused to mislead the client and obtain a load of likes, it is not possible in an official, Facebook-approved way.

Categories : HTML

prettyPhoto lightbox social tools: all images have the same number of Facebook likes
In case anyone ever comes up on this again, This solution worked for me and it shares the image directly. This is for images only, but there's no reason it wont work for the rest of the cases in PrettyPhoto. In your PrettyPhoto parameters in prettyPhoto.js, switch out the facebook iframe to look like this with whatever params you want, all that matters here is that "{path}" is in the href spot of the iframe src: <iframe id="fbiframe" src="//www.facebook.com/plugins/like.php?href={path}&amp;width&amp;layout=button&amp;action=like&amp;show_faces=false&amp;share=true&amp;height=21&amp;" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:26px;" allowTransparency="true"></iframe>' Then around line 274 in the prettyPhoto.js fil

Categories : Javascript

facebook october 2013 migration affects likes.count field in Graph Api call
Once you have loaded the Facebook page feed: $config = array(); $config['appId'] = your_app_id; $config['secret'] = your_secret_number; $confif['fileUpload'] = false; $facebook = new Facebook($config); $pageid = facebook_page_id; $pagefeed = $facebook->api('/' . $pageid . '/feed'); You can loop through the data and find a field called 'likes'. With an other loop you can get the total number of likes for the corresponding post. If you want the number of likes for a posted comment there is also a field called 'like_count' that directly gives the number of likes for this comment. Retrieving likes count per post : foreach ($pagefeed['data'] as $post) { $likes_number = 0; if (isset($post['likes'])) { foreach ($post[

Categories : PHP

Number of Likes increases when page is refreshed
Since .live() is deprecated try to use .on() like $("#likeThis").on("click", function () { and put these functions in document.ready like $(document).ready(function(){ $("#likeThis").on("click", function () { --------------------- });

Categories : Jquery

How to get all post from a page with count ALL likes and comments?
Unfortunately Facebook has removed as you have seen the total count of likes and comments when you look at posts. Instead you need to make another call for each post to retrieve the total likes or comments. Also they have renamed it from count to total_count Example: For likes https://graph.facebook.com/POST_ID/likes/?summary=true it will return something like this { "data": [ { "id": "xxxx", "name": "xxxxx" }, { "id": "xxxx", "name": "xxxxx" }, { "id": "xxxx", "name": "xxxxx" }, { "id": "xxxx", "name": "xxxxx" } ], "paging": { "cursors": { "after": "NTU2MTU3NjU0", "before": "MTA4OTM4NzgwMA==" } }, "summary": { "total_count": 4 } } For comments: https://graph.facebook

Categories : PHP

Facebook 'like' button doesn't show when linking to my Facebook page - it works for every other page
Ok. I feel like an idiot. After about a month of thinking, I was having a shower this morning and I finally figured out the problem. This Facebook page is not available to people in Thailand. I live in Thailand.

Categories : Facebook

Same Google +1 button likes count for same page in different languages
I don't think there is any way to have the +1 button share different URLs but have the same count, so you need some way of determining the language to display that is not based on the URL. The best way to do this is to examine the "Accept-Language" header from the HTTP request, and serve up the portuguese page if the language is pt, and the english version otherwise. Something like the following (untested code) on www.website.net/the-page: if ($_SERVER['HTTP_ACCEPT_LANGUAGE'] != 'pt') { header('Location: /en/the-page'); }

Categories : PHP

Python/Facebook-SDk How to get shares count for a photo posted on a page
You need to use the post id which should be of the form pageid_postedid. For example for this photo https://www.facebook.com/photo.php?fbid=10151690351123254&set=a.100690783253.87226.80329313253&type=1&theater The id of the photo is 10151690351123254 The id of the page is 80329313253 The post_id is 80329313253_10151690351363254 So then you can request the shares as 80329313253_10151690351363254?fields=shares { "shares": { "count": 4435 }, "id": "80329313253_10151690351363254", "created_time": "2013-06-19T18:02:31+0000" } Or in your case in Python something like fb.request(path='/80329313253_10151690351363254', args={'fields': 'shares'})

Categories : Python

Facebook oauth for accounts with managed page not switching (using Facebook as your page)
I'm having the same issue :( I haven't come across a solution.. except maybe to create a landing page on facebook canvas. This will prompt them to switch from "Page" to "Personal" before going through your application setup.

Categories : Facebook

Facebook Search API, keyword search does not display posts made in a page but only in a profile
Taking a look at the documentation: Just search with &type=post. From that documentation: All public posts: https://graph.facebook.com/search?q=watermelon&type=post

Categories : Facebook

NFC tag reading in python on raspberry pi
There are lots of links on google wherein you can find information on data format used in NFC. Some of them are http://learn.adafruit.com/adafruit-pn532-rfid-nfc/ndef http://developer.nokia.com/Community/Wiki/Understanding_NFC_Data_Exchange_Format_(NDEF)_messages

Categories : Python

Raspberry Pi Python PWM RuntimeError: No access to /dev/mem
The problem is with the code above is that I forgot to set RED to at output before trying to use it. The error message did not help resolve this problem. Next time, I need to remember to setup PWM pins as outputs before trying to use them.

Categories : Python

Grouping results from SQL query in python to display on page
You can try something like this: {% for row in rows %} <tr> <td>{{ row.number }}</td> <td>{{ row.call_type }}</td> {% if row.customer_id %} <td>{{ row.costumer_id }}</td> {% else %} <td>{{ row.department_name }}{{ row.description }}</td> {% endif %} <td>{{ ???? }}</td> </tr> {% endfor %} I don't know what framework or ORM, if any, you are using, but you could try with variations of that like: {% ifequal row.costumer_id NULL %} {% ifequal row.costumer_id None %} ...

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.