我想在 Shopify 网站中创建帐户后将客户重定向到结账页面。
\n\nShopify 提供了这种在客户登录时重定向的方法:
\n\n{% form \'customer_login\' %}\n <input type="hidden" name="checkout_url" value="/checkout"/>\nRun Code Online (Sandbox Code Playgroud)\n\n但将相同的方法应用于客户注册时,表单会在成功时重定向到结账,但会忽略错误检查:
\n\n {% form \'create_customer\' %}\n <input type="hidden" name="return_to" value="/checkout" />\nRun Code Online (Sandbox Code Playgroud)\n\n这种使用 HTML 表单而不是 Liquid 表单的方法会重定向到结帐,但客户尚未登录,这违背了结帐前创建帐户的目的:
\n\n <form method=\'post\' action=\'/checkout\' id=\'create_customer\' accept-charset=\'UTF-8\'>\n <input name=\'form_type\' type=\'hidden\' value=\'create_customer\'/> \n <input name="utf8" type="hidden" value="\xe2\x9c\x93">\nRun Code Online (Sandbox Code Playgroud)\n\n错误检查后有什么重定向的想法吗?谢谢!
\n我已经为FBSDKShareLinkContent设置了内容,并设置了每个param contentURL,contentTitle,contentDescription,imageURL.
当共享对话框加载到facebook本机应用程序时,它正确填充了我的参数.
但是,一旦我在Facebook上查看帖子,就不再显示参数数据,而是帖子标题来自contentURL的元数据.
如何使用contentDescription和contentTitle覆盖元数据?谢谢!
// Assemble Content
var content: FBSDKShareLinkContent = FBSDKShareLinkContent()
content.contentURL = NSURL(string: DOWNLOAD_LINK_APPSTORE)
content.contentTitle = "My Custom Title"
content.contentDescription = "My Custom Description"
content.imageURL = NSURL(string: FB_IMAGE_LINK)
// Share Dialog
FBSDKShareDialog.showFromViewController(self, withContent: content, delegate: nil)
Run Code Online (Sandbox Code Playgroud)