��돪������������facebook\��\��\��������ҏ�돫����������Ï�����»�ߏ��������������������������³���������������³���������������������������¹��¡��³�����я�������������������¡�

��������¡����������������Џ�����\½���¼\·\���\���������\������¼\��ď����ҏ����̏����Џ��·�����ď��������������ޏ��������¹��������¡�facebook ���������������½���������ď����������� Graph API �����������������Ï������������̏����С돪؏��µ���������������������������µ����������������������¾��Ï����я�����¼������������¹���������³���������̏�����������������¹��¡�Graph API ������������\������¼\��������facebook\��⏢�¼\���������¾��Ï����я����̏����㏢���������������Ð������������������¼���������������������������¹���̏�¡��ӏ��������������������쏢¡ߏ�����¾��Ï����я���������������¾��Ï����я�����������������\������¼\��ď�����¼������������¹�����������ď����������������¾��⏢�̏���̏���ߏ��������������������������¹��¡�
�����¾��⏢���� OAuth 2.0 ������������������»��������������Ώ���»�����������������������������������¡��¾��⏢�̏��������������Ð access_token ������������������\������¼\���\��я���¼���������������������������¹��¡��³������������»��������Ï��³������������\������¼\��ď�����\��\���\»\¹������������������������ޏ��������¹��������¡�
�����������������Ï��������ޏ�������¡��¾��⏢�̏���̏���ߏ�����\������¼\���¼���������»��Џ���������������ҏ����������������������������Ώ��������·�����ď�¡�
��\��\��\����������Ð�����ď�����\µ\���\���URL���������Ώ���������»��ӏ���돢��������̏���ߏ��������¹���̏�¡��½����������������������������������������������������������·���������¹
1) \������¼\������\��\���\»\¹���¹������
������http://localhost:3000/
2) \µ���¼\Ð�����Ï����������� Graph API ������\������¼\��\������¼\��ď�����������������\���\���\��\¹\������¹������
������https://graph.facebook.com/me
3) OAuthException ���̏����ӏ��µ�����������ď����� authorize \���\½\���\��������ҏ�������������\��\��\��������¾���²��������������������ԏ��Ð���µ����������������
������https://graph.facebook.com/oauth/authorize?client_id=xxx&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F&scope=

4) µ���²������¹������������\��\���\»\¹���µ������ code ������������������\���\���\������¼\��ď����؏��������\���\���\��\¹\������̏�����������
������http://localhost:3000/?code=xxx
5) code ������������������\���\���\������¼\��ď����ҏ����؏��ޏ����� access_token \���\½\���\��������ҏ��������¡�access_token ������¼������������¹������
������https://graph.facebook.com/oauth/access_token?client_id=xxx&client_secret=xxx&code=xxx&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F
6) access_token �����ҡ돫⏢ď�ԏ��������·��������돩������� Graph API ������\���\���\��\¹\������¹������
������https://graph.facebook.com/me?access_token=xxx

¾������·���������ޏ��������������½��Џ����������������쏢������������¡�
3) �����������¾���²��������������������ԏ��Ð���µ����������������������½���²��я��������ޏ�������¡�\��\��\������̏����¾��⏢�µ���������������Ð��¡�¼���²��я��«������������ 3) ������½������������������¾���²��������������������������ԏ��Ð���µ�����������돢����¼«����돪���쏢���� 4) ������½������������������ԏ��Ð���µ���������������¹��¡�
���������·������������ access_token ������\���\���\���¼�����������������������������·�����������쏢�ޏ��Ð��¡��½������������\��Џ��¼\¹���¹���������³������������ 2) ������\��\���\»\¹»��Џ����� access_token �����ҡ돫⏢ď�ԏ��������·�����������؏��ޏ����������²���������³������������������������������¹��¡��½�����Ï��¹���������в��ď����㏢����²��ď����㏢����������������¼��������������ҏ��¹����������̏���ߏ����������������������»�����я����� :-)
�����ď��������·��¡�access_token ������������ expires ���̏����Ώ��������µ��������������������������������������������·������ offline_access ������¼������������¹���������Ð expires ����������Ï����䏪���쏢�������������µ�����������������������������Ï��������¹���̏�����¡��·���Ð���������������¹������������»�����𡯏��������������������������������¹��¡�expires ���̏����⏢������������������¡�access_token �����ҡ돫⏢ď�ԏ��������·���������������·�����������²������������ OAuthException ���������������������³���������̏�������������������¡�돩������� access_token ������¼������������·���������������������µ��������¡�
�����������������Ώ����� expires ���̏����⏢����������������������������²��ď����㏢��������������ޏ����� access_token ����¼���������������������������¹��¡�
---
��������¡�rest-graph ������������������\���\���\���\���\���������»�����𡯏��Ð���³���������؏�����½������������������叢���������я�����¼«����돢�������������������������������������������������ޏ����������я��������¹���̏�¡�²��ď���¹��ԏ������������������������������������«�������������������̏����㏪�������������������쏢������ď��������������¹��������������������

��������¡����������������Џ�����\½���¼\·\���\���������\������¼\��ď����ҏ����̏����Џ��·�����ď��������������ޏ��������¹��������¡�facebook ���������������½���������ď����������� Graph API �����������������Ï������������̏����С돪؏��µ���������������������������µ����������������������¾��Ï����я�����¼������������¹���������³���������̏�����������������¹��¡�Graph API ������������\������¼\��������facebook\��⏢�¼\���������¾��Ï����я����̏����㏢���������������Ð������������������¼���������������������������¹���̏�¡��ӏ��������������������쏢¡ߏ�����¾��Ï����я���������������¾��Ï����я�����������������\������¼\��ď�����¼������������¹�����������ď����������������¾��⏢�̏���̏���ߏ��������������������������¹��¡�
�����¾��⏢���� OAuth 2.0 ������������������»��������������Ώ���»�����������������������������������¡��¾��⏢�̏��������������Ð access_token ������������������\������¼\���\��я���¼���������������������������¹��¡��³������������»��������Ï��³������������\������¼\��ď�����\��\���\»\¹������������������������ޏ��������¹��������¡�
�����������������Ï��������ޏ�������¡��¾��⏢�̏���̏���ߏ�����\������¼\���¼���������»��Џ���������������ҏ����������������������������Ώ��������·�����ď�¡�
��\��\��\����������Ð�����ď�����\µ\���\���URL���������Ώ���������»��ӏ���돢��������̏���ߏ��������¹���̏�¡��½����������������������������������������������������������·���������¹
1) \������¼\������\��\���\»\¹���¹������
������http://localhost:3000/
2) \µ���¼\Ð�����Ï����������� Graph API ������\������¼\��\������¼\��ď�����������������\���\���\��\¹\������¹������
������https://graph.facebook.com/me
3) OAuthException ���̏����ӏ��µ�����������ď����� authorize \���\½\���\��������ҏ�������������\��\��\��������¾���²��������������������ԏ��Ð���µ����������������
������https://graph.facebook.com/oauth/authorize?client_id=xxx&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F&scope=

4) µ���²������¹������������\��\���\»\¹���µ������ code ������������������\���\���\������¼\��ď����؏��������\���\���\��\¹\������̏�����������
������http://localhost:3000/?code=xxx
5) code ������������������\���\���\������¼\��ď����ҏ����؏��ޏ����� access_token \���\½\���\��������ҏ��������¡�access_token ������¼������������¹������
������https://graph.facebook.com/oauth/access_token?client_id=xxx&client_secret=xxx&code=xxx&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2F
6) access_token �����ҡ돫⏢ď�ԏ��������·��������돩������� Graph API ������\���\���\��\¹\������¹������
������https://graph.facebook.com/me?access_token=xxx

¾������·���������ޏ��������������½��Џ����������������쏢������������¡�
3) �����������¾���²��������������������ԏ��Ð���µ����������������������½���²��я��������ޏ�������¡�\��\��\������̏����¾��⏢�µ���������������Ð��¡�¼���²��я��«������������ 3) ������½������������������¾���²��������������������������ԏ��Ð���µ�����������돢����¼«����돪���쏢���� 4) ������½������������������ԏ��Ð���µ���������������¹��¡�
���������·������������ access_token ������\���\���\���¼�����������������������������·�����������쏢�ޏ��Ð��¡��½������������\��Џ��¼\¹���¹���������³������������ 2) ������\��\���\»\¹»��Џ����� access_token �����ҡ돫⏢ď�ԏ��������·�����������؏��ޏ����������²���������³������������������������������¹��¡��½�����Ï��¹���������в��ď����㏢����²��ď����㏢����������������¼��������������ҏ��¹����������̏���ߏ����������������������»�����я����� :-)
�����ď��������·��¡�access_token ������������ expires ���̏����Ώ��������µ��������������������������������������������·������ offline_access ������¼������������¹���������Ð expires ����������Ï����䏪���쏢�������������µ�����������������������������Ï��������¹���̏�����¡��·���Ð���������������¹������������»�����𡯏��������������������������������¹��¡�expires ���̏����⏢������������������¡�access_token �����ҡ돫⏢ď�ԏ��������·���������������·�����������²������������ OAuthException ���������������������³���������̏�������������������¡�돩������� access_token ������¼������������·���������������������µ��������¡�
�����������������Ώ����� expires ���̏����⏢����������������������������²��ď����㏢��������������ޏ����� access_token ����¼���������������������������¹��¡�
---
��������¡�rest-graph ������������������\���\���\���\���\���������»�����𡯏��Ð���³���������؏�����½������������������叢���������я�����¼«����돢�������������������������������������������������ޏ����������я��������¹���̏�¡�²��ď���¹��ԏ������������������������������������«�������������������̏����㏪�������������������쏢������ď��������������¹��������������������
