post comment for an url programmatically in facebook - asp.net

Is there a way to post a comment for a given url programmatically in facebook?

I am not sure you can do that by simply passing a variable in a url, but you may be interested to learn more from their developer section. For open graph, I see on the Facebook Developer site that you can only implement LIKES but not comments.

Related

Automatically repost WordPress post on LinkedIn Articles

A client is asking for an option to automatically repost/copy a published post from WordPress to a LinkedIn article since there's a different audience watching both feeds.
Most created WordPress solutions only facilitate sharing a link to the website post on the standard feed and from what I can find at https://developer.linkedin.com/docs/guide/v2/shares/articles-api there seems no option to create articles through an API, only retrieve and delete them.
I was wondering if I missed something or if at the moment it's not possible to create LinkedIn articles through the API. Thanks.
so because you speak of a client. i will take this as a hint that the article needs posting on the company page.
you should read the following page:
https://developer.linkedin.com/docs/company-pages
this page contains all information regarding managing company pages including adding posts.
There are two methods for sharing content via the REST API. The API endpoint is the same, regardless of the method you choose — only the format of the request body differs.
Post a plain text comment. Note that if the comment includes a
fully-qualified URL in it, LinkedIn analyzes the included URL and
automatically identifies the title, description, image, etc., to be
used as part of the share. Share with specific values — You provide
the title, description, image, etc., directly in the body of the
request.
NOTE:
you cannot use the V2 api's without a partnership with linkedin. the link i provided is for V1 api. this api is for free use. if you necessarily need the V2 then just post a comment and i will explain the proces of the partnership.

NextScripts SNAP : not using the permalink in wordpress?

This is in a way a followup of this question : Jetpack Publicize: Sharing only on Twitter for a category
I am currently working on a website in which one of the category only serves as a way to curate news on the net and then, share it on the front page and on Twitter.
The post itself is empty, I use a custom field to receive the URL from the user, grab a few things from the target website, update the permalink and save. Upon saving, SNAP publishes the post on Twitter.
My issue is that it is not using the permalink but the url of the post itself (which is absolutely empty). Having a look into the plugin's code, I saw that it was using post metas (most notably urlToUse, snap_MYURL) but couldn't determine if it was a priority issue or something else.
I also try to adjust my code to set these meta values to the url I want, to no avail.
Is there a way I could set my custom functions or the SNAP plugin so that the permalink is used ?
No answer after a week, neither here nor from SNAP's support. No problem.
The ugly patch I used :
Jetpack Publicize for all the Twitter updates
SNAP for the Facebook ones thanks to their ability of posting based on a specific category
It's bloated and I'd love to understand but, sometime, you have to ship

FB Comment 'Also Post on Facebook' and FB Share - Linkback to different URLs?

This is SO annoying.
The Issue is a matter of two scenarios behaving differently when I expect (and wish) them to be the same, these relate to the same webpage/article which features both Facebook Comment widget and a Share icon.
It's important to mention that the webpage is a Wordpress article, and we redirect:
from www.example.com/wordpress/articles/news/thearticle
to www.example.com/news/thearticle
The issue explained:
Scenario 1) I visit the article and type a facebook comment, I also click 'Also Post on Facebook'. When I view may facebook wall and see the share with the comment I just made, the link is linking back to the wordpress URL - I do not want this.
Scenario 2) I visit the article and share it through the Share icon. On my wall this time the linkback URL is the short one - this is good.
Important info regarding debugging
My OG URL tag is correct:
<meta property="og:url" content="http://www.example.com/news/thearticle"/>
Facebook debugger is picking up the correct desired URL as above,
also listing the desired Fetched URL and Canonical URL. All seems to
be what I want it to be.
This is true regardless of whether or not I
scrape the URL before or after I try this procedure.
Even if I then go back and do another comment with 'also post on FB' after doing a scrape with FB debugger, still the share links to the wrong/long format/original URL.
However, if I at any point share via the share icon, not the comment-share, the desired URL is present as per the OG URL.
If I do a comment-share, then an icon-share, then another comment-share, the comment share ones still have the wrong URL even though the icon-share had the correct one!
Any ideas? Thanks so much in advance to anyone who can help :)
It seems that the Comments FB plugin doesn't get the page info from OpenGraph, but expect a data-href attribute, or if not provided will use the current url by default.
From the doc:
data-href
Description : The absolute URL that comments posted in the plugin will be permanently associated with. Stories on Facebook about comments posted in the plugin will link to this URL.
Default : Current URL.
So what you need to do is to provide the valid URL as an HTML5 attribute on your plugin wrapper:
<div class="fb-comments" data-href="http://www.example.com/news/thearticle" data-numposts="5"></div>

Facebook comments box plugin + dynamic url on asp?

I'm trying to put the FB comments box on the bottom of each of my products pages on my site. I have managed to do this but when set to a static url it says the same comments on every product. I deleted the url and now it kind of works but says the plugin is in compatabilty mode.
Heres whats in my products template:
My site is trickscooter.co.uk so you can see. The comments box is at the bottom of every product.
I want people to be able to ask questions on the item shown so I can answer them so all can see.
PS - It says this:
Warning: this comments plugin is operating in compatibility mode, but has no posts yet. Consider specifying an explicit 'href' as suggested in the comments plugin documentation to take advantage of all plugin features.
Thanks !
The static URL won't do for the 'href' parameter as that parameter tells Facebook which comments to show. If you always use the same URL, of course you get always the same comments. You should have a unique url per product and use that dynamically.
If you generate the href parameter dynamically, you need to be aware that you will loose comments if your page is accessible under different domains.
The best way is to configure a 'facebook domain' (e.g. 'www.foo.example') and use that to generate your href attribute for Facebook comments.
If I misunderstood you please explain your current embedding code and what you tried. If you like the answer, please mark it as 'solution'.

Crosspost Wordpress blog post to blogger

I want to publish the same post which I just published in the worpress blog to blogger & facebook automaticaly. I know it possible and there are various plugin out there. But cant find one free to use plugin which do this.
I used a 'network publisher' plugin. Its free for facebook by need to pay if we want to add another on like blogger or other. But its working good for me in facebook
Now I am really worried what to do for my blogger to get automatically posted from wordpress.
At last I got the blogger (.blogspot) to get my post automatically from the wordpress.
The blogger can be configured to post via email. There in the blogger account we have to create a secret email address in the setting tab
format look like this - name_of_the_site.secretcode#blogger.com (so that a mail send to this address will automatically posted in the blogger)
And then in the wordpress install a plugin named CROSSPRESS which do all the required stuff
where simply put the email address and the signature which we want to show underneath each post.
Test it by creating a new post and publishing it. You will get the same in blogger
DONE......
It is now possible to post directly using Blogger API (since 4 weeks)
I think you just have to wait a plugin that integrate this feature.
Here is the API announcement : http://code.blogger.com/2012/06/blogger-api-v3.html
Simply set up Blogger and Facebook to get your Wordpress site RSS feed. Look at Blogger and Facebook for docs on how to do that.
Cross post seems to have issues in that line breaks don't get carried across properly and it seems to generate ASCII character 160 in a few random places as well at the moment.

Resources