Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

QA: onShareInFacebook() Description Problem #11

Open
uyu423 opened this issue Jan 24, 2017 · 1 comment · May be fixed by #12
Open

QA: onShareInFacebook() Description Problem #11

uyu423 opened this issue Jan 24, 2017 · 1 comment · May be fixed by #12

Comments

@uyu423
Copy link
Member

uyu423 commented Jan 24, 2017

image

post detail 페이지에서 페이스북 공유 버튼을 누르면 query string으로 넘어가는 description parameter가 마크다운 그대로 표시됩니다. (description=${encodeURIComponent(this.body)})

window.open(`https://www.facebook.com/v2.1/dialog/feed?&app_id=1404961129515494&caption=YOP: Year Of Programmers&description=${encodeURIComponent(this.body)}&display=popup&locale=ko_KR&name=${encodeURIComponent(this.title)}&link=${encodeURIComponent(url)}&picture=${image}&version=v2.1`,
      'facebookShare',
      'toolbar=0,status=0,width=625,height=435'
    );

그리고 server-side rendering이 구현되어 있지 않아 https://yop.cool/posts/-KbFigCHUHXEK4tuFFap 와 같은 url을 그대로 페이스북 글 작성에 붙여 넣을 경우 기본 OpenGraph Meta Tag 정보가 출력됩니다 ㅜㅜ
image
굳이 꼭 필요한 기능은 아닐 것 같지만. 분명 어느정도 수요가 있을 것 같습니다.

@qkraudghgh
Copy link
Member

@uyu423
네 ㅠㅠ 저거는 어쩔 수 없이 SPA + Firebase 특성상 아직 해결 못할 것 같습니다.
facebook share description같은 경우엔 그냥 본문 내용을 text로 때려박고 있기 때문에 마크다운 이 그대로 들어가는 경우가 있습니다 ㅠ 이건 개발보다는 기획단에서 생각을 해봐야할 문제 같네요 감사합니다!

@uyu423 uyu423 linked a pull request Jan 25, 2017 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants