Ajay_Kumar
Ajay_Kumar

Reputation: 1387

Facebook api warning message during compilation

I integrated facebook api in project. I am getting this warning message in its code. Here is the code details.

    FBXMLHandler* handler = [[[FBXMLHandler alloc] init] autorelease];
  NSXMLParser* parser = [[[NSXMLParser alloc] initWithData:data] autorelease];

  parser.delegate = handler ; // Warning message is occurring here 

// waning message= class FBXMLHandler does not implement the NSXMLParserDelegate protocol // [parser parse];

How will I remove this warning message "class FBXMLHandler does not implement the NSXMLParserDelegate protocol" from the above code.

Upvotes: 0

Views: 173

Answers (2)

user814037
user814037

Reputation:

According to this GitHub issue you may be using the wrong Facebook SDK.

The official & supported one is located here.

The subtle difference is the old, deprecated one is called facebook-iphone-sdk whilst the new, officially supported one is called facebook-ios-sdk

Upvotes: 2

iOSPawan
iOSPawan

Reputation: 2894

FBXMLHandler class should implement NSXMLParserDelegate methods - like didStartElement etc. and check header file (.h file) of FBXMLHandler for protocol decleration for NSXMLParserDelegate protocol.

Upvotes: 1

Related Questions