logo
down
shadow

Use the Facebook JS API to comment on a webpage that doesn't have a numerical object id


Use the Facebook JS API to comment on a webpage that doesn't have a numerical object id

By : enson
Date : November 25 2020, 01:01 AM
like below fixes the issue 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:
code :


Share : facebook icon twitter icon
Facebook javascript API Comment Object

Facebook javascript API Comment Object


By : user3392093
Date : March 29 2020, 07:55 AM
This might help you i am develpoing the app which retrieve the logged user current comment on facebook wall and no of like for comments. , This should be all you need to get the logged in user's wall posts.
code :
FB.api('/me/statuses/', function(response){console.log(response);});
How to create a link to a Facebook object within a comment using the Facebook API

How to create a link to a Facebook object within a comment using the Facebook API


By : user3568288
Date : March 29 2020, 07:55 AM
Post comment onto a webpage, using facebook graph api

Post comment onto a webpage, using facebook graph api


By : oooorgle
Date : March 29 2020, 07:55 AM
may help you . That is not the correct syntax for posting comments. At least the postId is missing: Here how you call it via API (php sdk)
code :
$facebook ->api('/'.$post_id.'/comments', 
 'post', 
   array(
      'message' => 'users comment',
   )
);
Having more than 1 facebook comment box in a webpage

Having more than 1 facebook comment box in a webpage


By : Ronald G.
Date : March 29 2020, 07:55 AM
Does that help Yes, but you'll need to specify a different url for the comments to be associated with
code :
<iframe src="http://www.facebook.com/plugins/comments.php?href=link1.com&permalink=1" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:130px; height:16px;" allowTransparency="true"></iframe> 

<iframe src="http://www.facebook.com/plugins/comments.php?href=link2.com&permalink=1" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:130px; height:16px;" allowTransparency="true"></iframe> 
Comments are visible on the webpage, but the html object returned by BeautifulSoup did not contain the comment parts

Comments are visible on the webpage, but the html object returned by BeautifulSoup did not contain the comment parts


By : user2573438
Date : March 29 2020, 07:55 AM
I wish this helpful for you The comments are generated by JavasSript via an ajax request. You can send the same request and get the comments from the json response. You can find the request using the network tab in the inspect tool.
code :
from urllib.request import urlopen
from bs4 import BeautifulSoup, Comment
import json
webpage_link = "https://www.airvuz.com/api/comments/video/59b2a56141ab4823e61ea901?page=1&limit=20"
page = urlopen(webpage_link).read()
comments_json=data = json.loads(page)
for comment_info in comments_json['data']:
    print(comment_info['comment'].strip()) 
Not being there I enjoyed a lot seeing the life style of white bear. Thanks to the provider for  such documentary.
WOOOW... amazing...
I've been photographing polar bears for years, but to see this footage from a drones perspective was epic! Well done and congratz on the Nominee! Well deserved.
You are da man Florian!
Absolutely outstanding!
This is incredible
jaw dropping
This is wow amazing, love it.
So cool! Did the bears react to the drone at all?
Congratulations! It's awesome! I am watching in tears....
Awesome!
perfect video awesome
It is very, very beautiful !!! Sincere congratulations
Made my day, exquisite, thank you
Wow
Super!
Marvelous!
Man this is incredible!
Material is good, but  edi is bad. This history about  beer's family...
Muy bueno!
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org