지난 몇 일간 내 페이스 북의 의견이 통합되지 않습니다. 나는 AA 레일 응용 프로그램 및 필요한 메타 정보는 페이스 북 SDK는 내 헤더 파일페이 스북 코멘트를로드 할 때 500 오류가 발생했습니다.
# Facebook comments SDK
((d, s, id) ->
js = undefined
fjs = d.getElementsByTagName(s)[0]
return if d.getElementById(id)
js = d.createElement(s)
js.id = id
js.src "//connect.facebook.net/en_US/all.js#xfbml=1&status=0&appId=199743376733034"
fjs.parentNode.insertBefore js, fjs
) document, "script", "facebook-jssdk"
그리고 메모 상자 자체를 초기화
%meta{:content=> '199743376733034', :property=> "fb:app_id"}
%meta{:property=> "fb:admins", :content=> 'skmvasu'}
%meta{:content=> request.url, :property=> "og:url"}
%meta{:content=> description, :property=> "og:description"}
-# FACEBOOK meta info
- if controller.controller_name == 'live_stories' && (controller.action_name == 'show' || controller.action_name == 'embed')
%meta{content: "book", property: "og:type"}
%meta{content: @live_story.title, property: "og:title"}
%meta{content: "#{request.url}/#{@live_story.cover_image}", property: "og:image"}
가에로드
내 meta.haml 파일에서로드 사용 내 세부 사항 페이지의견-wrapper.boxed.flat
%h5.white-bg.recommended-title
Discussion
.wrapper
.fb-comments{"data-colorscheme" => "light", "data-href" => "#{request.original_url}", "data-numposts" => "5"}
그러나 코멘트 상자가로드되면 URL에 도달 할 수 없다는 오류 메시지가 표시됩니다. 내가 페이스 북 디버거를 통해 디버깅을 시도했지만 500 오류를 보여줍니다.
먼저이 페이지가 GET을 통해 렌더링되는 동안 게시 요청을 보내는 것으로 가정합니다. 그래서이 페이지가 도착하고 게시 할 수 있도록 경로 파일을 변경했습니다.
match '/live_stories/:id/:title' => 'live_stories#show', as: :show_with_title, via: [:get, :post]
그러나 오류도 해결되지 않았습니다. 공유 버튼도 제대로 작동하지 않으며 500 오류가 표시됩니다. 앱 ID 및 기타 모든 정보가 유효합니다. 문제가 무엇인지 잘 모릅니다.
페이 스북의 API에 며칠이 지난 후, https://developers.facebook.com/status/이라는 문제가 있지만 그 문제가 수정되었다고 생각했습니다. API 문제입니까, 아니면 내가 끔찍한 일을하고 있습니까? 페이스 북은 몇 가지 템플릿이 오류를 던지고 URL을 긁어 시도하는 동안 http://mangoreader.com/live_stories/52f1eac869702d3133c70000/it 년대 - 바보 시간