Hi All -
This thread is probably an unusual use case for many. However, I said I'd
report back. Since this issue only applies to the Facebook image that
populates in a share dialog I left the STATIC_URL and MEDIA_URL settings
alone. I created a custom context processor. It let's me replace {{
MEDIA_URL }} for my facebook share image with a variable called {{
FACEBOOK_SHARE_URL }}. The domain matches the actual site domain, as
requested in the original post above.
As I mentioned (and heard straight from a Facebook rep) - False positives
for spam can get triggered when your Facebook share image has a different
domain (e.g. a cloud front domain) than the actual site domain. That's a
super easy fix in a single site mezzanine scenario. But a little more work
in a multi site mezzanine scenario. When that false positive gets triggered
your reach (from facebook shares) drops a lot.
If anyone needs the details of the context_processor let me know.
Otherwise, it's very just straight forward Django.
Cheers
On Friday, November 20, 2015 at 4:48:28 PM UTC-8, Matt Mansour wrote:
>
> Howdy all -
>
> I am working on multi tenancy mezzanine project. I define a static URL in
> settings (in this case a Cloudfront URL). However, the static URL needs to
> change to match the site I am accessing.
>
> For example, if I am on *example.com <http://example.com>* I want my
> static url to render as *media.example.com/static/
> <http://media.example.com/static/>... * Likewise, if I am on *example2.com
> <http://example2.com>* I want my static url to render as
> *media.example2.com/static/
> <http://media.example2.com/static/>*
>
> Has anyone here had to implement something similar?
>
> Unfortunately when images are rendered from a different domains than the
> site domain strange things can happen; like Facebook share reach
> diminishing, as their current algo seems to associate that sort of thing as
> spam.
>
> Cheers
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.