opengraph - Facebook open grach og:description cache issue -



opengraph - Facebook open grach og:description cache issue -

i'm trying facebook open graph, , want assign og:description dynamically when user share page, , it's determined php.

<meta name="og:title" content="test1" /> <meta name="og:description" content="<?php echo $_request['parm'] ?>" /> <meta name="og:image" content="http://nuphoto.com.tw/titleapp4.png" /> <meta name="og:url" content="http://nuphoto.com.tw/share/easygo_bruce.php" />

however, caches previous result, , doesn't change. googled solution , of them didn't work. here're trials.

go https://developers.facebook.com/tools/debug , come in url. works, need alter page dynamically. it's not suitable me.

follow how update facebook open graph image

$.post( 'https://graph.facebook.com', { id: 'http://www.example.com/my/share/url/', scrape: true }, function(response){ console.log(response); });

it didn't work, , showed error.

fb.getloginstatus() called before calling fb.init(). all.js:53 object {url: "http://example.com/mytest.php", type: "website", title: "test, image: array[1], description: "xxx"…} someone said add together v=xxx&fbrefresh=xxx may help, still fails me.

https://www.facebook.com/sharer/sharer.php?u=example.com&fbrefresh&v=xxxx

please help me , spent hours of work....

none of solutions work you, why?

facebook debugger scrapes url , static html (meta) of pages. facebook bot not user session!, scrapes page meta tags, refresh cache , out that's

<meta name="og:description" content="<?php echo $_request['parm']; ?>" />

$_request['parm'] current user/session see , set, while debugger doesn't have session or $_request['parm'] set.

sincerely, can't alter og:image dynamically according current session.

facebook opengraph

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -