擅长:python、mysql、java
<p>以下<a href="https://developers.facebook.com/docs/technical-guides/opengraph/publishing-with-app-token/" rel="noreferrer">https://developers.facebook.com/docs/technical-guides/opengraph/publishing-with-app-token/</a>:</p>
<pre><code>import requests
r = requests.get('https://graph.facebook.com/oauth/access_token?grant_type=client_credentials&client_id=123&client_secret=XXX')
access_token = r.text.split('=')[1]
print access_token
</code></pre>
<p>(使用<code>client_id</code>和<code>client_secret</code>的正确值)为我提供了类似于访问令牌的内容。</p>