π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: instagram changes
Nevo David56ec5bb6e030
diff --git a/apps/frontend/src/components/launches/providers/instagram/instagram.provider.tsx b/apps/frontend/src/components/launches/providers/instagram/instagram.provider.tsxindex 8c12e3523..a127c5c6f 100644--- a/apps/frontend/src/components/launches/providers/instagram/instagram.provider.tsx+++ b/apps/frontend/src/components/launches/providers/instagram/instagram.provider.tsx@@ -1,7 +1,42 @@import { withProvider } from '@gitroom/frontend/components/launches/providers/high.order.provider';+import { FC } from 'react';+import { Select } from '@gitroom/react/form/select';+import { useSettings } from '@gitroom/frontend/components/launches/helpers/use.values';++const postType = [+ {+ value: 'post',+ label: 'Post',+ },+ {+ value: 'story',+ label: 'Story',+ },+];+const InstagramProvider: FC<{ values?: any }> = (props) => {+ const { watch, register, formState, control } = useSettings();++ return (+ <>+ <Select+ label="Post Type"+ {...register('post_type', {+ value: '',+ })}+ >+ <option value="">Select Post Type...</option>+ {postType.map((item) => (+ <option key={item.value} value={item.value}>+ {item.label}+ </option>+ ))}+ </Select>+ </>+ );+};export default withProvider(- null,+ InstagramProvider,undefined,undefined,async ([firstPost, ...otherPosts]) => {diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.tsindex ccf40e711..f64915754 100644--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts@@ -377,4 +377,8 @@ export class InstagramProvider})) || []);}++ music(accessToken: string, data: {q: string}) {+ return this.fetch(`https://graph.facebook.com/v20.0/music/search?q=${encodeURIComponent(data.q)}&access_token=${accessToken}`);+ }}