2014-11-06 97 views
0

我在我的facebook牆上張貼消息。我想發佈我的消息鏈接。當我點擊該鏈接時,它應該帶我到另一個Facebook頁面。請看下面的屏幕截圖。如果可能的話,請提供您的建議或代碼。請幫幫我。如何在目標c中發佈href鏈接到facebook牆壁

enter image description here

+0

る試着用'份額kit'框架需要幫助試試這個[鏈接](http://stackoverflow.com/questions/10124340/ post-multiple-urls-in-one-post-using-iphone-sharekit) – 2014-11-06 05:27:45

+0

no @ Anbu.Karthik。如何使用共享套件框架來實現該功能。如果你有任何示例代碼? – Goutham 2014-11-06 05:29:57

+0

@ Anbu.Karthik可以使用共享套件框架實現這一點。 是這個使用facebooksdk.framework的工具。 – Goutham 2014-11-06 06:47:39

回答

0

假設這是你的NSString

NSString *mesage =[NSString stringWithFormat:@"FINAL @[Page-id1] - 0 @ @[Page-id2] via ....",passyourPage-id1,passyourPage-id2]; 


NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys: 
         mesage, @"message", 
         nil 
        ]; 
/* make the API call */ 
[FBRequestConnection startWithGraphPath:@"/{page-id}/feed" 
         parameters:params 
         HTTPMethod:@"POST" 
        completionHandler:^(
         FBRequestConnection *connection, 
         id result, 
         NSError *error 
       ) { 
         /* handle the result */ 
        }];