I am currently facing an issue with sending invitations via the Facebook Graph API. Each time I include an invitation code in the link and send it using the Facebook UI dialog, the link gets altered.
FB.init({
appId: 'facebook_app_id',
status: true,
cookie: true,
xfbml: true
});
FB.ui({
method: 'send',
link: 'https://mywebsite.com/i/jywk2j',
name: 'You receive an invite',
to: 1
});
Upon checking the message, I noticed that the link is now changed to 'https://mywebsite.com' without the '/i/jywk2f' part.
The link does not show any strange redirects or error codes when visited. It simply leads to a normal landing page.
Can anyone provide some insight into what could be going wrong here?
UPDATE
App Settings
Display name: My website name
Namespace: empty
App domains: empty
Hosting URL: You have not generated a URL through one of our partners (Get one)
Choose how your app integrates with Facebook
Selected option: Website with Facebook Login
URL: https://mywebsite.com
Analysis from https://developers.facebook.com/tools/debug
Response Code 200
Fetched URL https://mywebsite.com/i/jywk2j
Canonical URL https://mywebsite.com/i/jywk2j
Open Graph Warnings That Require Attention
Inferred Property The 'og:url' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:title' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:description' property should be explicitly provided, even if a value can be inferred from other tags.
Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags.
Tiny og:image All images referenced by og:image must be at least 200px in both dimensions. Please check all images tagged with og:image on the specified URL and ensure they meet the minimum requirement.
Object Details
og:url https://mywebsite.com/i/jywk2j
og:type website
og:title Title of my website