react-native-fbsdk
의 GraphRequest를 사용하여 내 앱에서 FB에 게시합니다. 특히, 외부에서 호스팅되는 mp4 비디오에 대한 링크를 게시하려고 시도하고 있으므로 https://img.myapp.com/image_id.mp4
과 같은 URL에 게시하십시오. 여기에 내 요청에 대한 코드입니다GraphRequest를 사용하여 페이스 북에 mp4를 올리기 네이티브
return new Promise(function(resolve, reject) {
const post = new GraphRequest('/me/feed', {
httpMethod: 'GET',
version: 'v2.9',
...payload,
}, (err, result) => {
if (err) {
reject(err);
}
resolve();
});
new GraphRequestManager().addRequest(post).start();
});
는 그리고 여기있는 payload
:
{
httpMethod: 'POST',
parameters: {
type: { string: 'article' },
message: { string: message || '' },
caption: { string: 'Powered by MyApp' },
link: { string: media.url },
ref: { string: uuid },
picture: { string: media.url },
source: { string: media.url },
properties: [
{ name: { string: 'type' }, text: { string: 'video.other' } },
],
}
단지 몇 초 길이입니다). 이 properties
속성은 유형, 높이, 너비 및 다른 위치에 메타 태그를 추가하여 링크의 비디오에 대한 정보를 전달해야하는 속성을 지정해야하는 곳입니다. 내가 시도
: - POST 워드 프로세서 (https://developers.facebook.com/docs/graph-api/reference/v2.11/post) 여기 graph api Error: Unexpected value for parameter 'properties'. Request parameters need to be objects with a 'string' field.
상기 그래프 API의 properties
블록의 스크린 샷이다 : 그러나, properties
와 내가 그것을 가지고있는 방법 나는이 오류를 작성 이 개체 (또는 배열?)에 대한 여러 가지 구성을 생각할 수 있으며 모두이 오류를 반환합니다. GraphRequest를 사용하여 mp4 비디오를 게시하는 것에 익숙한 사람이 있습니까, 아니면 적어도 properties
매개 변수를 사용하는 방법에 대해 조언 할 수 있습니까? 미리 감사드립니다!