2017-03-08 3 views
2

Ich benutze FBSDKProfileExpressionKit.framework.Facebook Profilbild hochladen mit FBSDKProfileExpressionKit - swift 3.0

Ich versuche, Fotofehler hochgeladen ist aufgetreten.

ungültiges Bild kann nicht erneut versuchen versuchen.

In ViewController.swift

override func viewDidLoad() { 
     super.viewDidLoad() 
     let data = UIImageJPEGRepresentation(uplodeImage.image!, 0) 
     FBSDKProfileExpressionSharer.uploadProfilePicture(from: data! as Data, metadata: nil) 
     FBSDKProfileExpressionSharer.wasLaunchedFromFacebook() 
     print("set") 
    } 

In AppDelegate.swift

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool { 
    FBSDKProfileExpressionURLHandler.parseIncomingURL(url) 
    return true 
    } 

Meine Frage: -

kann ich hochladen Profilbild auf Facebook?

+0

Sie können kein Profilbild auf Facebook hier hochladen ist der Link - https://developers.facebook.com/docs/gr aph-api/Referenz/Benutzer/Bild/ – Ronit

+0

availble. Link - https://developers.facebook.com/docs/profile-expression-kit/ios#uploading –

+0

@SagarBhut Gibt es Pods für dieses SDK? –

Antwort

1

Sie können kein Profilbild mit Graph-Api hochladen.

können Sie laden Profilbild mit FBSDKProfileExpressionKit

Sie müssen neuesten Facebook-App haben und überprüfen Sie auch die Bildgröße und Dimension

Sie Foto hochladen und Video

[FBSDKProfileExpressionSharer uploadProfilePictureFromData:videoData metadata:nil]; 

[FBSDKProfileExpressionSharer uploadProfilePictureFromUIImage:uiimage metadata:nil]; 

Weitere Informationen folgen : - https://developers.facebook.com/docs/profile-expression-kit

+0

Gibt es Pods für dieses SDK? –

+0

Hier gibt es einen FBSDK-Check https://developers.facebook.com/docs/profile-expression-kit –

+0

@VaibhavJhaveri Kein Pod verfügbar in Kakao pod und auch keine Dokumentation über Pods –

Verwandte Themen