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

Share on facebook feature returns an error #52

Closed
ane-gabriela opened this issue Jan 31, 2019 · 3 comments
Closed

Share on facebook feature returns an error #52

ane-gabriela opened this issue Jan 31, 2019 · 3 comments
Assignees
Milestone

Comments

@ane-gabriela
Copy link

Steps to reproduce:

  1. Click on a forum
  2. Click on a topic
  3. Click on Facebook button
  4. Login (if needed) and share the link
  5. Check the Facebook profile to which the link was shared

Expected results: The post is displayed on the respective Facebook profile.

Actual results: After you click on the blue icon, you get a facebook window where you login.
If you click on Share button, you get: "Sorry, this feature isn't available right now: An error occurred while processing this request. Please try again later"

Environment: Windows 10, XWiki 10.11.2 Standard Version, Edge 18

Issues raised on Jira: https://jira.xwiki.org/browse/XAFORUM-218

facebookshare

@ignatescustefan
Copy link

This issue is reproducing only if you are using a local XWiki instance and your hostname is not represented by an IP address. Also, I don't know if it's useful to share a local link to social platforms since you can't access that link outside the local machine.

@mflorea
Copy link

mflorea commented Aug 31, 2020

and your hostname is not represented by an IP address

This part is not clear. @ignatescustefan does it work if you add an alias for the localhost in the host configuration file? And you use that alias to access your wiki instead. If it does then:

  • we should improve the documentation (mention that the share feature doesn't work on localhost)
  • ideally we should disable the share feature when on localhost and we should display a warning message on the Forum administration section when the share feature is activated on localhost

@mflorea
Copy link

mflorea commented Sep 1, 2020

If we deactivate the share feature on localhost we need to make sure we use the same API to get the URL (host) as the one used when sharing, as @tmortagne pointed out. So @ignatescustefan you need to check how the URL is computed when you click on share and then use the same API to get the host when disabling the feature or when showing the warning message in the administration.

@ignatescustefan ignatescustefan self-assigned this Sep 17, 2020
ignatescustefan added a commit that referenced this issue Sep 17, 2020
*check if the hostname is valid
*added a warning message in the administration page when the host is not valid
ignatescustefan added a commit that referenced this issue Oct 19, 2020
mflorea added a commit that referenced this issue Oct 21, 2020
Issue #52: Share on facebook feature returns an error
@ignatescustefan ignatescustefan modified the milestones: 3.0, 2.7.4 Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants