Showing posts with label SDK. Show all posts
Showing posts with label SDK. Show all posts

Tuesday, September 1, 2015

Facebook Video Upload on iOS using latest Facebook SDK for iOS(4.x)

 let videoData = NSData(contentsOfURL: NSURL.fileURLWithPath(path))
        
        if (hasGrantedPermission("publish_actions")) {
            
            var params = [String: AnyObject]()
            params["fields"] = ""
            params["video.mov"] = videoData
            params["contentType"] = "video/quicktime"
            params["description"] = "Test"
            FBSDKGraphRequest(graphPath: "/me/videos", parameters: params, HTTPMethod:"POST").startWithCompletionHandler {
                (connection, result, error) -> Void in
            }

        }

Saturday, May 16, 2015

Instagram iOS SDK integration

Get it here
https://github.com/crino/instagram-ios-sdk

Errs:

{ "code": 403, "error_type": "OAuthForbiddenException", "error_message": "Implicit authentication is disabled" }

Follow these steps:

{ "code": 400, "error_type": "OAuthException", "error_message": "Redirect URI does not match registered redirect URI" }

Make sure REDIRECT URI is set to ig[clientId]://authorize
while registering application on Instagram website.