<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
	<channel>
				<title><![CDATA[facebook api 보는법..]]></title>
		<link>https://www.cosmosfarm.com/threads/rss/document/9677</link>
		<description><![CDATA[<pre class="_5gt1 prettyprint lang-js prettyprinted">
<code>/* make the API call */
FB.api(
    "/{achievement-id}",
    function (response) {
      if (response &amp;&amp; !response.error) {
        /* handle the result */
      }
    }
);</code></pre>

<p>예를 들어 위에 처럼 API에 대한 예시코드가 있을때..</p>

<pre class="_5gt1 prettyprint lang-js prettyprinted">
<code>{achievement-id} 는 어디서 얻어오나요?/</code></pre>

<h3>필드</h3>

<table style="width:676.364px;"><thead><tr><th style="vertical-align:bottom;white-space:nowrap;">Field</th>
			<th style="vertical-align:bottom;white-space:nowrap;">설명</th>
		</tr></thead><tbody><tr><td style="vertical-align:top;">
			<p><code>id</code></p>

			<p>numeric string</p>
			</td>
			<td style="vertical-align:top;">
			<p> </p>

			<p>The photo ID</p>

			<p> </p>
			</td>
		</tr><tr><td style="background-color:rgb(246,247,249);vertical-align:top;">
			<p><code>album</code></p>

			<p><a href="https://developers.facebook.com/docs/graph-api/reference/album/">Album</a></p>
			</td>
			<td style="background-color:rgb(246,247,249);vertical-align:top;">
			<p> </p>

			<p>The album this photo is in</p>
			</td>
		</tr></tbody></table><table style="width:676.364px;"><tbody><tr><td style="vertical-align:top;">
			<p> </p>
			</td>
		</tr></tbody></table><p>그리고 이런 필드들은 어떻게 활용하나요??</p>

<p>API문서가 있어도 보기가 너무 어렵네요 ㅠㅠ 설명부탁드립니다!</p>

<p> </p>

<p> </p>

<p>참고링크: https://developers.facebook.com/docs/graph-api/reference/photo/</p>
]]></description>
		<copyright>Copyright 2026, 코스모스팜</copyright>
				<item>
			<title><![CDATA[/me/photos

페이스북 그래프 API를 사용하시면 photo 목록을 불러오실 수 있을겁니다.

 

아래처럼 사...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/9725</link>
			<description><![CDATA[<p>/me/photos</p>

<p>페이스북 그래프 API를 사용하시면 photo 목록을 불러오실 수 있을겁니다.</p>

<p> </p>

<p>아래처럼 사용하시면 될겁니다.</p>

<p>FB.api(<br />
    "/me/photos",<br />
    function (response) {<br />
      if (response &amp;&amp; !response.error) {<br />
        /* handle the result */<br />
      }<br />
    }<br />
);</p>

<p> </p>

<p>페이스북 그래프 API 사용 방법은 아래 링크를 참고해주세요.</p>

<p><a href="https://developers.facebook.com/docs/graph-api/using-graph-api/" target="_blank">https://developers.facebook.com/docs/graph-api/using-graph-api/</a></p>

<p> </p>

<p>그리고 반드시 REST API에 대해서 구글에서 찾아보시길 바립니다^^</p>

<p>REST API에 대한 개념없이 API를 사용하실 수 없기 때문입니다.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Mon, 25 Jul 2016 14:22:38 +0000</pubDate>
			<category>페이스북 API</category>
		</item>
				<item>
			<title><![CDATA[
/* make the API call */
FB.api(
    &quot;/{photo-id}&quot;,
    function (response) {
      if ...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/9714</link>
			<description><![CDATA[<pre class="_5gt1 prettyprint lang-js prettyprinted">
<code>/* make the API call */
FB.api(
    "/{photo-id}",
    function (response) {
      if (response &amp;&amp; !response.error) {
        /* handle the result */
      }
    }
);</code></pre>

<p>photo-id를 어떻게 얻는지 알 수 있을까요??</p>

<p>api문서에 필드에그냥 id라고 적혀있고 어디서 받아오는지 잘모르겠습니다.</p>

<p>그리고 필드값은 어떻게 활용하나요?</p>

<p>예를들어 console에 출력하려면..</p>

<p>허접한질문 죄송합니다</p>
]]></description>
			<author>tg6****</author>
			<pubDate>Mon, 25 Jul 2016 01:04:48 +0000</pubDate>
			<category>페이스북 API</category>
		</item>
				<item>
			<title><![CDATA[흠.. 글로 설명드리기가 매우 어렵군요.

우선 아래 페이지를 꼼꼼히 살펴봐주세요.

페이스북 그래프 A...]]></title>
			<link>https://www.cosmosfarm.com/threads/document/9695</link>
			<description><![CDATA[<p>흠.. 글로 설명드리기가 매우 어렵군요.</p>

<p>우선 아래 페이지를 꼼꼼히 살펴봐주세요.</p>

<p>페이스북 그래프 API 목록입니다. 그리고 매뉴얼이죠.</p>

<p><a href="https://developers.facebook.com/docs/graph-api/reference" target="_blank">https://developers.facebook.com/docs/graph-api/reference</a></p>

<p> </p>

<p>achievement-id는 achievement를 등록할때 반환되거나 리스트를 가져와서 알 수 있습니다.</p>

<p>기록 API를 참고해보세요.</p>

<p><a href="https://developers.facebook.com/docs/games/services/scores-achievements#achievements" target="_blank">https://developers.facebook.com/docs/games/services/scores-achievements#achievements</a></p>

<p> </p>

<p>아래처럼 하면 본인의 achievement 목록을 가져올 수 있습니다.</p>

<p>FB.api(<br />
    "/me/achievements",<br />
    function (response) {<br />
      if (response &amp;&amp; !response.error) {<br />
        /* handle the result */<br />
      }<br />
    }<br />
);</p>

<p>achievement 목록을 가져오면 해당 achievement의 id 값도 알 수 있겠지요.</p>
]]></description>
			<author>스레드봇</author>
			<pubDate>Fri, 22 Jul 2016 09:23:21 +0000</pubDate>
			<category>페이스북 API</category>
		</item>
			</channel>
</rss>