iOS����Facebook API���g����Wall�ɓ��e����ɂ��F���Г]�ځFFacebook SDK for iOS�A�v���J���K�C�h�i2�j�i3/3 �y�[�W�j

» 2011�N07��07�� 00��00�� ���J
[���c�܂�q�C������В��l��]
�O�̃y�[�W�� 1|2|3 �@�@�@�@�@�@

�_�C�A���O�𗘗p�������e

�@�t�B�[�h�̓��e���A�|�b�v�A�b�v�_�C�A���O���g���čs�����Ƃ��ł��܂��B

}5@|bvAbv_CAOgătB[h𓊍e �}5�@�|�b�v�A�b�v�_�C�A���O���g���ăt�B�[�h�𓊍e

�@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

}6@lj{^ �}6�@�lj������{�^��

�@�{�^�����������Ƃ��ɌĂя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

}7@s �}7�@���s���

�@����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];
    
}
HelloFbViewController.m

�@��������s���Ă݂܂��B���e�_�C�A���O�ɂ��A�Y�t�����摜���\������܂��B

}8@bZ[W̓e �}8�@���b�Z�[�W�̓��e
}9@eꂽbZ[W �}9�@���e���ꂽ���b�Z�[�W

�@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];
��
}10@NGXg𑗐M �}10�@���N�G�X�g�𑗐M

�{���́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���Ă���


�O�̃y�[�W�� 1|2|3 �@�@�@�@�@�@

Copyright © ITmedia, Inc. All Rights Reserved.

'; this.insertTarget = document.querySelector('#cmsBody .subscription') || document.querySelector('#cmsBody .inner'); }; BodyAdIMSWithCCE.prototype = Object.create(BodyAdContent.prototype); BodyAdIMSWithCCE.prototype.activate = function () { refreshGam('InArtSpecialLink'); } // global reference window.itm = itm; //entry point BodyAdEventBase.polyfill(); const bodyAdManager = BodyAdManager.getInstance(); bodyAdManager.addEventListener(BodyAdManager.EVENTS.READY, function (ev) { bodyAdManager.loadAdvertise(); }); bodyAdManager.init(); })();
�X�|���T�[����̂��m�点PR

���ڂ̃e�[�}

Microsoft  WindowsőO2025
AI for GWjAO
[R[h^m[R[h Zg by IT - ITGWjArWlX̒SŊ􂷂gD
Cloud Native Central by IT - XP[uȔ\͂gD
�V�X�e���J���m�E�n�E �y�����i�r�zPR
���Ȃ��ɂ������߂̋L��PR

RSS�ɂ‚���

�A�C�e�B���f�B�AID�ɂ‚���

���[���}�K�W���o�^

��IT�̃��[���}�K�W���́A �������A���ׂĖ����ł��B���Ѓ��[���}�K�W�������w�ǂ��������B