w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
Comment on a Facebook post Using Api
You are sending a GET request instead of a POST, so what you are getting is an empty list of existing comments. Try changing Net::HTTP::Get to Net::HTTP::Post.

Categories : Ruby On Rails

Post by facebook comment box can't show image
This is because of the App ID that the comment plugin is set to. Please follow the steps below: Make App in Facebook Developers Add site's URL to the App Setting Get the code for comment plug in from https://developers.facebook.com/docs/reference/plugins/comments/ Paste the code's <script> part after body tag and <div> part on the area you wish. Let me know if you still have problem

Categories : Facebook

Facebook post comment count from Graph API
Well i don't know your scenario, so can't help you with exact solution. but one way to get comments count is getting it from the stream table using FQL. there is a structure of comment_info which gives the comment count for any specific post. see the query below for example: Select type, post_id, description, likes,comment_info from stream WHERE source_id = "*post_id*" put the post id in the clause.

Categories : Facebook

Facebook graph api, tell "comment" from "like" in the "post" list
I ran the following in facebook's graph api: /?posts.fields(id,message,story) which provides the same result as: / Note that I used a post id, not a page id. On a page id, you'll see the likes for the page while a post id will show the people who liked a post. The output clearly shows who commented and who liked. If you want to get a number for the count of people who have liked the post, check out Getting from Facebook API total number of likes per post.

Categories : Facebook

Facebook comment box display only website logo when user comment
Test your link at https://developers.facebook.com/tools/debug to see what thumbnails are pulled in by facebook when shared. To configure which thumbnail to show when an URL from your site is shared you have to add this property to your html source in the header. <meta property='og:image' content='url to First Image in your Page etc'/> More details about meta tags for FB at this link.

Categories : Facebook

duplicate comment on facebook comment box
Looks like this is a known bug with the plugin. https://developers.facebook.com/bugs/489244604487290 Hopefully Facebook will find a fix soon. Add yourself to the "repro" list in the link above to escalate the issue.

Categories : Facebook

Most recent post does not come above post if there was already made an comment
In above case GROUP BY groups the data with first occurrence of the p.ID so the latest will be neglected here is the trick to get all data with the ORDER BY and then group the data so the latest one will be there Try this one SELECT * FROM ( SELECT p.*, (CASE WHEN c.comment_date IS NULL THEN p.`post_date` ELSE c.comment_date END) AS order_column FROM `wp_posts` p LEFT OUTER JOIN `wp_comments` c ON (p.ID = c.`comment_post_ID` ) WHERE p.post_type='post' AND p.post_status='publish' ORDER BY order_column DESC ) t GROUP BY ID ORDER BY order_column DESC

Categories : Wordpress

facebook comment box in app
Refere this link and get All video details.. http://developers.facebook.com/docs/reference/api/video/ http://developers.facebook.com/tools/explorer/?method=GET&path=3802752155040

Categories : Javascript

Get facebook comment by id
FQL isn't deprecated. The blog post is talking about Rest API specifically, later on it states changes with FQL. To access comments you need a valid access token that can view the top level object. Assuming this is just for comments on websites, a normal extended page access token should suffice by following scenario 5 explained at https://developers.facebook.com/roadmap/offline-access-removal/ https://graph.facebook.com/oauth/access_token? client_id=APP_ID& client_secret=APP_SECRET& grant_type=fb_exchange_token& fb_exchange_token=EXISTING_ACCESS_TOKEN Exchange the short-lived user access token for a long-lived access token using the endpoint and steps explained earlier. By using a long-lived user access token, querying the [User ID]/account

Categories : Javascript

Facebook: How to comment on object
It turns out that not all the Facebook objects support comments. To see if your Object support comment inspect him in Facebook Query Language (FQL) Reference. Like Status Info for example, it have comment_info with can_comment parameter that says if you can comment. If your object don't have the comment_info property you can't comment on it.

Categories : Facebook

Facebook comment box on my website
Don't worry.You just need to put this code under a selector with div tag.After that adjust the div selector's width and height.Suitably use height as auto and give a min-width to it.Inside and just put in the following code.It works well. < fb:comments href="http://example.com/page" num_posts="10" width="700px" style="position:relative;display:block;">

Categories : Facebook

Comment like Facebook in iOS chat
Well you can try one of these controls .... hope they help you .. https://github.com/brutella/chatheads https://github.com/kenshin03/Home-For-iOS

Categories : IOS

Facebook like button add a default comment
This is not supported by facebook. The commentbox is reserved for the users comment on the content being liked. You should instead use open graph meta-tags on your page to control how your content is displayed in the users newsfeed or wall. You can review the open graph tags here: http://ogp.me/

Categories : PHP

How to pre-populate the Facebook Like with custom comment
No, you can't pre-fill the 'user message' part of any post to Facebook; for the Like button popup this refers to the 'add a comment' part of the popup This is a policy restriction which is enforced automatically in most of Facebook's APIs, SDKs and dialogs - that message is supposed to only contain user-typed text. if there were a way to force a specific message there, doing so would be a policy violation. I guess the reason you want to do this is also the reason this isn't allowed, which is for a site or app to put marketing text into the posts made by users from / about the site

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 Comment Box login issue in iOS app
The application login is different than the login for facebook commenting. It is because facebook comment uses social plugins and open in a webview. You login once in webview which is open after clicking of sign-in button for facebook commenting. After that, you will remain login on restart of your application.

Categories : IOS

Facebook comment plugin doesn't work at all
Specifically, after activating the plugin and properly connecting the plugin to the facebook app,which does work and has been used extensively before hand, comments simply fail to load. There is no comment box, no past comments pull in either (note the app has historical comments already). In the plugin settings area on the right side of the screen where the comments check box exists, there is a read more link that takes you to the facebook developers page where it discusses adding the facebook comments iframe. If there is some other location where comment settings might also exist (past the three fields that require the 2 keys and the app name) I could not find them and this was not referenced in the plugin setup.

Categories : Facebook

default comment count in facebook graph API
There is a way to get count of comments back. It's example from developers.facebook.com/tools/explorer SocialMediaClubMoscow?fields=feed.fields(comments.limit(1).filter(toplevel),message,likes,shares,from) }, "summary": { "order": "chronological", "total_count": 12 } total_count - is count of all comments Related topic: Removing 'count' from 'comments' Graph API connection

Categories : Facebook

Facebook comment box extending to my footer section
Set your #contentBody div height to auto, and add a div with clear: both just before you close your .content div. Then you'll need to make your left vertical menu be the same height as the #contentBody in order for it to look good. That way you'll be able to expand your comment list all day long and never break the page.

Categories : HTML

send email after facebook comment is posted
This worked: `$output = '<div id="fb-root"></div> <script> window.fbAsyncInit = function() { FB.init({ appId : "xxx", status : true, cookie : true, oauth : true, xfbml : true }); /* All the events registered */ FB.Event.subscribe("comment.create", function(response) { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.open("GET","../xxx/mail.php?response1="+ response.href,true); xmlhttp.send(); }); }; (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} js = d.createElement(s); js

Categories : Facebook

WordPress/Facebook Comment Count Anchor
what you need to do is to add an actual anchor to the comments count like this: <a href="<?php echo get_permalink($post->ID); ?>#loop-nav-singlular-post"><fb:comments-count href="<?php echo get_permalink($post->ID); ?>"></fb:comments-count> komentarzy</a> I've used the id "loop-nav-singlular-post" as it is the last ID on the page so it should scroll to the very bottom of the single template, but you could add a custom anchor on the single page. and replace it in the link on the index page.

Categories : Facebook

How to make a comment in facebook with attached picture
If you read the documentation properly, it says- message is the only parameter in this API call. It should be a string containing the comment text. So, using the API you can just comment a message to the object using- POST /{object-id}/comments? message='This is my message' , no link/picture could be attached alongwith.

Categories : Facebook

Related posts PHP affecting facebook comment box
You use the_permalink function to call the comments box, but your related post query affected it, so you need to use wp_reset_query(). I've also add <li> in the list and remove the php shortcode <? instead <?php (For many servers, this not working). You should try this : <?php $categories = get_the_category($post->ID); if ($categories) { $category_ids = array(); foreach($categories as $individual_category) $category_ids[] = $individual_category->term_id; $args=array( 'category__in' => $category_ids, 'post__not_in' => $showed_posts, 'showposts'=>3, // Number of related posts that will be shown. 'caller_get_posts' => 1, 'exclude' => '$postID', 'orderby' => 'rand' ); $my_query = new wp_query($args

Categories : PHP

How to integrate "Like" and "Comment" feature using Android Facebook SDK?
Please make sure the prerequisites are set up correctly. Specifically check out the middle of step 4 to make sure you generated your key hash correctly using your debug keystore. Otherwise code below should help out private boolean hasPublishPermission() { Session session = Session.getActiveSession(); return session != null && session.getPermissions().contains("publish_actions"); } private void postStatusUpdate() { if (hasPublishPermission()) { final String message = "Posting to facebook"; Request request = Request .newStatusUpdateRequest(Session.getActiveSession(), message, place, tags, new Request.Callback() { @Override public void onCompleted(Response response

Categories : Android

Post Comment in FB without showing name and DP
the comment must be made by a page without a name. you can also make a page without a name. first make a page, edit and remove its name from settings. now whenever you will comment, no name will be shown.

Categories : Facebook

App Comments using Facebook Comment Plugin disappear after refresh
the { } musn't be present. It should be like: <meta property="fb:app_id" content="382253945217128"/> try also the debuger: http://developers.facebook.com/tools/debug It should display the error. regards, Marek

Categories : Facebook

Facebook Graph API batch POST_ID comment counts?
Why did facebook decide to break this? Shh, calm down, young Padawan! :-) You can use Field Expansion to achieve this. Since you want only the comment count, we will limit the number of comments returned to 1 (the minimum possible – 0 would mean no limit and therefor the default of 25(?)), and ask for the summary field of the comments as well: /facebook/feed?fields=comments.limit(0).summary(1) Only slight drawback: Since this is using the fields parameter, you have to specify other fields of the post object you want to get as well – id and created_time are included by default as you can see, but others as f.e. message you will have to specify explicitly if you want to get them returned too. Edit: Using .limit(0) is now possible directly. You will still get a data structure

Categories : Facebook

Use the Facebook JS API to comment on a webpage that doesn't have a numerical object id
See, a comment is a reply to a feed/post. So in your case, you don't need to comment, you simply want to post a feed to your page something like: [Person A] posted a comment on [Title of Page, also links to page] This is the comment that the person wrote... For this, simply use: POST /PAGE_ID/feed?message=MESSAGE (You can see the available parameters list of feed here)

Categories : Facebook

How can I change arrow direction on Facebook comment window
No. The Facebook Like button mark-up and styles are provided by Facebook’s servers, so you have no control over them. This is mainly to protect their “look” and brand, so it’s consistent no matter what website it is placed on.

Categories : Javascript

How to make the Facebook Comment box that appears after liking display above and not below
apparently there's no solution for this issue. Please refer to this SO answer: Facebook like button box opening outside window area

Categories : Javascript

Facebook Comment box inside UIWebView doesn't have the right height
You're correct, the problem is that the scheme isn't http or https. The SDK doesn't support other schemes and thus will fail to initialize and setSize() will do nothing. Unfortunately, you'll need to find some other workaround to get this functionality.

Categories : IOS

How to insert multiple Facebook comment boxes on one page?
You just have to add an anchor to the absolute URL, like it is explained in another thread: Multiple facebook comment boxes on a single page? You can even test this in the plugin generator: https://developers.facebook.com/docs/reference/plugins/comments/ ...try changing "http://example.com" to "http://example.com#test" and you will see that some other people already commented on that one too. edit: After a small chat, we found out that the problem might be with the https. So, maybe it just doesn´t work with SSL, i´ve also tried with another server and it only works with the http link.

Categories : Facebook

Get one most recent comment for each post in mongodb
You should be able to do this with the aggregation framework by combining $group with $max. I would like to give you an exact solution, but I can't do so unless you give an example of your data. By the way: The proper way to structure this data in MongoDB would be to put the comments into a sub-Array of the posts.

Categories : Mongodb

Facebook is not compressing Java Script files used in Like and Comment Plugin
I was also concerned about this, until I read google's own product forum, where everybody was complaining about this pagespeed tool and specifically those uncompressed things that are actually external. I use firefox with firebug and yslow and think it's more reliable than pagespeed. http://productforums.google.com/forum/#!topic/adsense/Kz-9lxPw9VI%5B851-875-false%5D

Categories : Facebook

Facebook Graph API, FQL returns empty comment even though comments are present
are you sure this website is using Facebook comments plugin? you can retrieve only those comments with the comments_fbid, and I guess only if you have the required permission (same app access) UPDATE: Now when I fire query to Graph API, it gives me all comments posted from comment plugin. But not what I have posted from Facebook Wall. As I said, to retrieve comments on your Facebook Wall when you don't have the postID, you have to query Facebook to retrieve your feed, and then search inside the received posts data to find the one containing your link. Then you'll have all the comments. Try in the graph explorer, with the request ?fields=feed. You will have an object with a feed key, and feed.data will contain an array with all your posts. For each post, look at the link property an

Categories : PHP

Facebook like buttonto like a particular wall post (photo, video, link, etc) of my facebook page?
The middle response of Facebook Video Like Button Help? seems to indicate Facebook will automatically embed a like button into the video you upload to them (rather than linking to an external video). Also this article seems to confirm it: http://yourinternetbusinesslink.com/facebook-like-button-video/

Categories : Facebook

Can't post a comment in Trac from java application
We resolved the problem I didn't know but i just needed to send one more form, we need to get view time from trac and send it as a form: formparams.add(new BasicNameValuePair("view_time", view_time)); now it works

Categories : Java

One comment box loaded per post iD ( loop retrieving only once )
Is this not due to the fact that you are using include_once which doesn't then include the file on the subsequent loops. Try var_dumping the include_once statement. The first loop should return false and the others will return true if I'm correct. In that case just change it to a normal include function

Categories : PHP

How to know if a comment on a page post is hidden in Graph API
I'm PHP Developer, we have also used Facebook Graph API many times. As per my expertise, I think we cannot fetch/identify only hidden/spam comments. But yes you can get the comments for only particular user if you want. For example: 1.) Get id of a fanpage with public graph data: http://graph.facebook.com/cocacola - thumsup has 507267189335315. 2.) Get ThumsUp's "like plugin" iframe display directly with some modified params: http://www.facebook.com/plugins/fan.php?connections=100&id=40796308305 3.) Now check the page sources, there are a lot of fans with links to their profiles, where you can find their profile ids or nicknames 4.) If you are interested only in profile ids use the graph api again - it will give you profile id directly I hope you will find my answer appropriate. If y

Categories : Facebook

MySQL: How to get comment content and the post title
try this SELECT * FROM qa_posts p LEFT JOIN qa_users u ON c.userid = u.userid WHERE p.type = 'C' AND p.flagcount = 0 ORDER BY p.postid DESC LIMIT 5

Categories : PHP



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