Facebook connected to iOS, key points record (no callback, info. plist writing and other issues)

Source: Internet
Author: User

The problem I encountered was connecting Facebook to the cocos2d-x Project (iOS platform). below this articleArticleI have already said this very well. Read it first.

Http://blog.csdn.net/xiadasong007/article/details/8599611

Here we need to record two problems:

1. There is a URL types parameter in info. plist of the project. This parameter should be -- FB + appid. For example, if the Facebook appid you applied for is 23456, enter fb23456 here.

2. the login interface is successfully called, but the callback function is not called back. The reason is that your application does not process the system's Openurl message. In the appcontroller. MM file, reload this interface:

-(Bool) Application :(Uiapplication*) Application Openurl :(Nsurl*) URL sourceapplication :(Nsstring*) Sourceapplication annotation :(ID) Annotation

{

Return[Fbsession.Activesession
Handleopenurl: Url];

}

Set the session you are processing to activesession. facebooksdk has a special function.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.