�@�t�B�[�h�̓��e���A�|�b�v�A�b�v�_�C�A���O���g���čs�����Ƃ��ł��܂��B
�@Facebook.requestWithGraphPath���g���ē��e����R�[�h�������������A�_�C�A���O���瓊�e����悤�ɂ��Ă݂܂��B���[�U�[�́A�ǂ̂悤�ȓ��e�����e����邩�����Ȃ��݂�UI�Ŏ��O�Ɋm�F�ł��܂��B
�@HelloFbViewController.h�̃N���X�錾�����ł��B�_�C�A���O�W�̃C�x���g���n���h�����邽�߂ɁAFBDialogDelegate���������܂��B
@interface HelloFbViewController : UIViewController <FBSessionDelegate, FBRequestDelegate, FBDialogDelegate, UITextFieldDelegate> {
�@�����āA���̂悤�ɐV����IBOutlet��lj����܂��B
-(IBAction) postMessageWithDialog: (id) sender;
�@�V�����lj�����IBOutlet�upostMessageWithDialog�v���{�^���ŌĂяo����悤�ɂ��܂��BHelloFbViewController.xib���J����UIButton��lj����A�A�N�V������ڑ����܂��B
�@�{�^�����������Ƃ��ɌĂяo�����ApostMessageWithDialog���\�b�h�̎����ł��BNSMutableDictionary�^�̃p�����^�����AFacebook.dialog���\�b�h���Ăяo���Ă��܂��B�܂��́A���b�Z�[�W�݂̂̒P���ȃf�[�^��POST���Ă݂܂��B
-(IBAction) postMessageWithDialog: (id) sender { NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: messageField.text, @"message", nil]; [facebook dialog:@"stream.publish" andParams:params andDelegate:self]; }
�@��������s���Ă݂܂��B�_�C�A���O��\�����A�uPublish�v�{�^���œ��e���܂��B
�@����g����Feed Dialog�ɂ́A���ɂ����܂��܂ȃp�����^���w�肷�邱�ƂŁA���J�͈͂�A�^�b�`�����g�Ȃǂ��ׂ����ݒ�ł��܂��i�Q�l�FFeed Dialog - Facebook�J�����j�B
�@��قǂ̗�������ύX���āA�v���C�o�V�[�ݒ�ƃA�^�b�`�����g��t���Ă݂܂��B
�@FB.requestWithGraphPath�Ɠ��l�A2�K�w�ȏ�̃p�����^��n���ꍇ�AJSON������ɕϊ����ēn���K�v������܂��̂ŁA���ӂ��Ă��������B�����ł́Ajson-framework�𗘗p���āANSArray��NSDictionary����Ȃ�I�u�W�F�N�g��NSString�ɕϊ����Ă��܂��B
-(IBAction) postMessageWithDialog: (id) sender { NSDictionary *privacy = [[[NSDictionary alloc] initWithObjectsAndKeys: @"CUSTOM",@"value", @"SELF",@"friends", nil]autorelease]; NSDictionary *img = [[[NSDictionary alloc] initWithObjectsAndKeys: @"image",@"type", @"http:////www.example.com/img/bird.png",@"src", @"http:////www.example.com/",@"href", nil]autorelease]; NSDictionary *attachment = [[[NSDictionary alloc] initWithObjectsAndKeys: @"������",@"name", @"http:////www.example.com/",@"href", @"���킢�������߂ł�",@"description", [[[NSArray alloc]initWithObjects:img,nil]autorelease], @"media",nil]autorelease]; NSArray *attachmentList = [[[NSArray alloc]initWithObjects:attachment, nil] autorelease]; NSLog([attachmentList JSONRepresentation]); NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys: messageField.text, @"message", [attachment JSONRepresentation],@"attachment", nil]; [facebook dialog:@"stream.publish" andParams:params andDelegate:self]; }
�@��������s���Ă݂܂��B���e�_�C�A���O�ɂ��A�Y�t�����摜���\������܂��B
�@Facebook.dialog���\�b�h���g���ƁA�����悤�ȗv�̂ŃA�v���P�[�V��������̃��N�G�X�g�𑗐M���邱�Ƃ��ł��܂��B
NSMutableDictionary *params = [[[NSMutableDictionary alloc]init]autorelease]; [params setObject:@"Hello Request Dialog!" forKey:@"message"]; [params setObject:targetUserId forKey:@"to"]; [facebook dialog:@"apprequests" andParams:params andDelegate:self];
�{���́A�A�X�L�[�E���f�B�A���[�N�X���s�́wfacebook�A�v���P�[�V�����J���K�C�h�x�̂����u��15�� iOS�A�v���P�[�V�����̊J���v�̈ꕔ���A���Ђ̋��ē]�ڂ�����̂ł��B
�Ȃ��A Web�L���Ƃ��ē]�ڂ���ɓ�����A��IT�����ɕҏW����\����ύX���Ă���_������܂��B���̓_���������������B
��������l��
���c�܂�q�i�������܂肱�j
1980�N�������܂�A�v���O���}�B���z���}����l�H�q���ϑ��܂ŁA���[�U�[�ɋ����������炷���X��Web�T�[�r�X���������Ă���s�B���݁A�n�Ɠ�N�Ј��̊�����В��l�ԂɂāA���Web�J���Č�����|����B�{�Ƃ̖T��A�ڐV�����Ėʔ������ȕ��ɂ͂Ƃ肠������т��ăn�b�N���Ă���
Copyright © ITmedia, Inc. All Rights Reserved.