I want to post custom image and text on facebook without meta tag. here is my working code with app id
window.fbAsyncInit=function()
{FB.init({appId:"myappid",autoLogAppEvents:true,xfbml:true,version:"v2.10"});
FB.AppEvents.logPageView()};
(function(e,a,f){
var c,b=e.getElementsByTagName(a)[0];if(e.getElementById(f)){return}c=e.createElement(a);c.id=f;
c.src="//connect.facebook.net/en_US/sdk.js";b.parentNode.insertBefore(c,b)}(document,"script","facebook-jssdk"));
var title =jQuery(".title ").text();
var discription=jQuery(".imgsrcfb").val();
var url=jQuery(".url").val();
var image=jQuery(".image").src();
FB.ui( {
method:"share_open_graph", action_type:"og.likes", action_properties:JSON.stringify( {
object: {
"og:url": url, "og:title": title , "og:description": discription, "og:image": image
}
}
)
}
, function(e) {}
)
I have applied all method but none of work Before they worked. But in new facebook api upates they just stop working. Here is my reference site (They also stopped working) http://drib.tech/programming/dynamically-change-facebook-open-graph-meta-data-javascript
Please help me to shortout this Thank you in advance.