Forem Creators and Builders 🌱

Varhal
Varhal

Posted on

Twitter liquid tag publish error

Hey!

When posting an article, if there is a twitter tag, an error is displayed and the article is not published

Image description

If you do not use the twitter tag, then the article is published without problems.

Top comments (12)

Collapse
 
ellativity profile image
Ella (she/her/elle)

Hey @varhal - do you have Twitter OAuth configured on your Forem yet?

This error is usually encountered because Twitter's App Permissions haven't been fully configured for your Forem.

If you haven't already done this, we recommend taking time to review the Forem documentation for Authentication as well as Twitter's own documentation. (You will need to temporarily enable OAuth to establish the connection with Twitter, but you can turn it off again once you're all set.)

If you've already followed these steps, then it will help us to have more detailed information about your authentication settings to figure out where the error is occurring.

Collapse
 
ildi profile image
Ildi

I think most admins are confused by this because the Twitter OAuth configuration seems to be only making refence to Twitter signup/login option. It's not clearly explained that configuring OAuth is also required if you want to use Twitter liquid tags. Admins dont have to do any of this for Spotify, Youtube or Instagram liquid tags so they assume that Twitter should work the same way. I am not sure if the Forem docs reflect any of this information.

Collapse
 
ellativity profile image
Ella (she/her/elle)

It's not clearly explained that configuring OAuth is also required if you want to use Twitter liquid tags

Thank you for this feedback, @ildi , I think you're right here.

I am not sure if the Forem docs reflect any of this information.

I'll make sure they do. Thanks for bringing this up. I'm so glad you're here!

Thread Thread
 
ildi profile image
Ildi

I just remembered when I applied for access via Twitter I got rejected and didn’t get a chance to look into it and see what I did wrong. So I have been kind of avoiding using Twitter liquid tags on 1VIBE, but I def need to configure this soon.

Thread Thread
 
ellativity profile image
Ella (she/her/elle)

Did you have to upload your Privacy Policy? I think @michaeltharrington had identified that as something to note. Forem comes pre-loaded with a Privacy Policy at /privacy for your convenience.

Thread Thread
 
ildi profile image
Ildi

I did not know that we needed to do that. I’m going to run through the whole setup again and will report back here when I do. I’m sure I made a small mistake somewhere, prob not a big deal at all.

Thread Thread
 
ellativity profile image
Ella (she/her/elle)

Please let us know how you get on, and if there's anything else we can do to help (and improve our documentation).

Thread Thread
 
ildi profile image
Ildi • Edited

Not very happy with Twitter at the moment.

It turns out that I had already setup API keys for Twitter login when 1VIBE was a Wordpress website. So when I first attempted to create a new app/api key for our Forem login, Twitter rejected the application.

Now when I visit this link developer.twitter.com/en/portal/da... I get automatically forwarded to this link developer.twitter.com/en/portal/pe... which looks like this:

1VIBE Twitter Dashboard Portal

Fortunately I was able to edit the old 1VIBE Twitter app and configure the callback URLs required for Forem Twitter authentication. Twitter signup/login is now successfully configured for 1VIBE. Twitter liquid tags also work which you can see in the comments on this post.

According to Twitter I cannot create additional apps because my developer account was rejected or suspended. And there is no way to appeal this, so im not sure what to do about this.

1VIBE Twitter App


When testing Twitter login, I noticed that we ask for a lot of permissions. Are these standard for all Forem Twitter authentication configs?

1VIBE Twitter Login Permissions

Also I think I discovered a small bug during the onboarding process when a user first signs up. I recently updated the 1vibe.com/terms page for 1VIBE. But the page that shows up when you click the terms link during onboarding process shows the old terms page which contains the "noreply@forem.com" email link. This means the onboarding process is pulling the old terms page.

1VIBE onboarding terms page

Thread Thread
 
ellativity profile image
Ella (she/her/elle)

Hey @ildi it sounds like you've been on a bit of a rollercoaster with Twitter this weekend!

When testing Twitter login, I noticed that we ask for a lot of permissions. Are these standard for all Forem Twitter authentication configs?

In my experience, yes. I don't tend to use Twitter to sign up for stuff, so actually had to go test this on a bunch of Forems. Can confirm that this is the first thing I see everytime.

Also I think I discovered a small bug during the onboarding process when a user first signs up. I recently updated the 1vibe.com/terms page for 1VIBE. But the page that shows up when you click the terms link during onboarding process shows the old terms page which contains the "noreply@forem.com" email link. This means the onboarding process is pulling the old terms page.

This prompted a really interesting discussion in Product & Eng. Turns out, the New User Onboarding modal doesn't display your /terms page (even though that's the URL that displays when you hover over the Terms link text), it actually pulls a hard-coded text from another page that doesn't update when you overwrite your Forem's Terms page. I've submitted a bug report to get this fixed here (and welcome your additional comments as always), but it might take a second to scope out the task for this.

Thanks so much for noticing and flagging this one! We're lucky that your situation is just an email address, and not a huge behavioural or legal deviation that could be really problematic for new users.

Thread Thread
 
ildi profile image
Ildi

Thank you for submitting that bug report @ellativity !

Something else I noticed when using Twitter to sign up:

Users get the normal confirmation email sent to the email associated with your Twitter profile. But when you click on the confirmation link in the email you get this "email was already confirmed, please try singing in" error message:

Forem email confirmation

Forem email confirmation twitter error

I wanted to test this again, so this morning I signed up for 1VIBE using another Twitter profile. This time I have not recieve the confirmation email and it's been almost 1hour since I signed up. Was this change made on the weekend or is this just an error with the email not being sent to me?

Thread Thread
 
ildi profile image
Ildi

Also I just tried to sign up to MetaPunk via Twitter and I noticed the permissions their setup is asking for is different than what I have for 1VIBE (see screenshot above)

MetaPunk Twitter Permissions

@lee can you please help me compare your Twitter app permission for MetaPunk login compared to what I have configured for 1VIBE:

1VIBE Twitter permission settings

Thread Thread
 
lee profile image
Lee

Hey @ildi I just have read only permissions