Topic-icon Facebook share api with addthis.com widget is posting wrong url

Active Subscriptions:

None
Same code works on PHP site without JFBconnect.
Does JFBConnect provide an api/variable to be set which is used while posting to the facebook page with share apis? (og:url property?)
The topic has been locked.
Support Specialist
JFBConnect will automatically set the og:url tag, and a few other Open Graph tags, on each page. There are multiple ways to override these tags, like using our Open Graph plugins to generate better tags for certain extensions.

If you need to override a tag on a specific page, you can add the following Easy Tag to the page:
{SCOpenGraph url=http://domain.com/best-url-for-this-page}

I hope that helps explain, but if not, let me know:

Same code works on PHP site without JFBconnect.

* What code are you talking about?
* Can you let me know a page where the wrong URL is posted so we can test?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
Alex,
We want to use a custom url to be posted to facebook, for a particular layout.
Currently the url that is getting posted is the base url for the website, which is not wrong: but it is not serving the purpose.
Is there any api that we can call from PHP to set the meta tags such as og:url that are posted to facebook:, to ensure that facebook share api calls pick these properly?

We will also try the Easy tag, though I suspect it may work only on articles and not from PHP layout files.

Thanks,
Pawan.
The topic has been locked.
Support Specialist
If you want to set the Open Graph URL, use the Easy Tag. It's the easiest way to override the og:url tag that JFBConnect would set otherwise.

The EasyTag can be specified anywhere, including a PHP layout file. As long as it's content that would be shown in the browser, JFBConnect will detect it and replace it with the proper og:url tag.

I hope that helps explain, but again, if you run into issues, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
I have tried the Easy Tag way to set the image and url as well as used the template/<name>/index.php to set the meta properties, but I am getting inconsistent results.
Is there a JFBconnect plugin/api that provides the functionality/interface of posting a (url + image + description) to facebook, while asking user authorization/login along.
Currently we are using JFBconnect to only login to facebook, not to post urls: and this will be useful for all users : even those who didnt login using facebook.
The topic has been locked.
Support Specialist
Sorry for the delayed response.

have tried the Easy Tag way to set the image and url as well as used the template/<name>/index.php to set the meta properties, but I am getting inconsistent results.

You shouldn't be setting the tags manually in your index.php file. If you do, then JFBConnect likely can't see and update them, if necessary. As for 'inconsistent results', can you explain what you mean by this? Is the code in the output HTML changing when you load the page, or when you click the Like button, different URLs are chosen?

Is there a JFBconnect plugin/api that provides the functionality/interface of posting a (url + image + description) to facebook, while asking user authorization/login along.

JFBConnect has Facebook Like and Share buttons that you can use, as well as Open Graph tag support. That should be what you're looking for, we just need to understand a bit better about what you're trying to do, what isn't working, and why.

Login functionality for Facebook (and the other social networks) is definitely a core feature of JFBConnect and should work without issue.

Currently we are using JFBconnect to only login to facebook, not to post urls: and this will be useful for all users : even those who didnt login using facebook.

Again, Facebook has the Like and Share features as well as Open Graph tags. Those should be what you need to post content. If you're using AddThis, I'm not sure if they alter the Open Graph tags on your page, or share your URLs differently.

Again, if you can post (or Private Message) a page that's having issues along with instructions on how we should be testing, we'll gladly take a look.

Thanks,
Alex
The topic has been locked.