How to share the page to facebook / twitter with different language? <p>I am using codeigniter and the language is determine by the session.</p> <p>I wrrite the meta data, facebook / twitter grab the data and share the page:</p> <pre><code> echo "&lt;meta name='twitter:card' content='summary' /&gt;"; echo "&lt;meta property='og:title' content='" . $video-&gt;{set_lang("title")} . "' /&gt;"; echo "&lt;meta property='og:description' content='" . $video-&gt;{set_lang("description")} . "' /&gt;"; echo "&lt;meta property='og:image' content='" . (isset($video-&gt;image_url) ? site_url("thumbnail/" . $video-&gt;image_url) : $video-&gt;thumbnail) . "' /&gt;"; </code></pre> <p>The set_lang function is to check the session like this:</p> <pre><code>function set_lang($var) { $CI = &amp; get_instance(); $lang = $CI-&gt;session-&gt;userdata('site_lang'); if ($lang == "english") { return $var; } else if ($lang == "zh_tw") { return $var . "_tw"; } else if ($lang == "zh_cn") { return $var . "_cn"; } } </code></pre> <p>The share function work fine in the browser, however, I would like to share the link by mobile app too. Since the app contain no session it can not check language. Also, if I put the parameter in the link, eg.</p> <p><a href="http://example.com/video/view/1/english">http://example.com/video/view/1/english</a></p> <p>Then my share link will also fix the language.</p> <p>Any ideas ? Thanks a lot for helping.</p>