몇 달 전에 나는 대화 상자를 자신의 텍스트로 미리 채울 수 있었기 때문에 사용자는 텍스트를 공유하기 위해 공유를 클릭하면되지만 페이스 북은 해당 매개 변수를 무시하기 시작했습니다. 이 게시물 : https://developers.facebook.com/blog/post/510/FBConnect를 사용하여 사전 채우기 대화 상자가 표시됩니까?
그래서 다른 방법으로 사용자가 쉽게 공유 할 수있는 메시지를 미리 채울 수 있습니까?
감사합니다.
- (void)webViewDidFinishLoad:(UIWebView *)webView
{
[super webViewDidFinishLoad:webView];
if (defaultStatus)
{
// Set the pre-filled status message
[_webView stringByEvaluatingJavaScriptFromString:
[NSString stringWithFormat:@"document.getElementsByName('feedform_user_message')[0].value = decodeURIComponent('%@')",
[SHKEncode(defaultStatus) stringByReplacingOccurrencesOfString:@"'" withString:@"\\'"]
]
];
// Make the text field bigger
[_webView stringByEvaluatingJavaScriptFromString:@"document.getElementsByName('feedform_user_message')[0].style.height='100px'"];
}
}
이렇게 할 다른 방법은 없습니까? 내 앱이 많이 의존하는 경우에는 어떻게해야합니까? –
몇 가지 예제 코드 만 표시하여 올바른 방향으로 갈 수 있습니까? 그렇다면 나는 투표를하고 답을 받아 들일 것입니다! :) –
위의 코드를 확인하십시오, 그 코드는 현재 작동하지 않지만 어떻게 작동합니까? –