<<<<<<< HEAD "use strict";(self.webpackChunkast_block_templates=self.webpackChunkast_block_templates||[]).push([[191],{6191:function(e,t,r){r.r(t),r.d(t,{default:function(){return _}});var o=r(5711),s=r(5940),n=r(7363),a=r(7009),l=r(1392),c=r(5302),i=r(8096),u=r(10),p=n.forwardRef((function({title:e,titleId:t,...r},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"}))})),d=r(6486),g=r(2154),m=r(972);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{getFilterBlocksByCategory:t,getFilterBlocksPagesByCategory:r}=e("ast-block-templates");return{filterBlocksByCategory:t(),filterBlocksPagesByCategory:r()}})),(0,i.Z)((e=>{const{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:o}=e("ast-block-templates");return{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:o}})))((e=>{let{item:t,className:r,setFavorites:o,setFilterBlocksByCategory:s,filterBlocksByCategory:l,filterBlocksPagesByCategory:i,setFilterBlocksPagesByCategory:b,...h}=e;const{favorites:v,currentScreen:k}=(0,c.Z)((e=>{const{getFavorites:t,getCurrentScreen:r}=e("ast-block-templates");return{favorites:t(),currentScreen:r()}})),w="all-blocks-grid"===k?"block":"page",[E,_]=(0,n.useState)(v[w]?.includes(+t.ID));return React.createElement("button",y({className:(0,a.AK)("flex items-center justify-center rounded-full p-2 bg-white cursor-pointer focus:outline-none border border-solid border-border-primary",E?"":"text-icon-secondary",r),onClick:async e=>{e?.preventDefault(),e?.stopPropagation();try{await(0,u.Z)({path:`${f}/wp-json/gutenberg-templates/v1/favorite`,data:{type:t.type,block_id:t.ID,status:!E},method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce,"content-type":"application/json"}})}catch(e){console.error(e)}let r={...v};r=E?{...v,[w]:v[w].filter((e=>e!==(0,d.parseInt)(t.ID)))}:{...v,[w]:[...new Set([...v[w],(0,d.parseInt)(t.ID)])]},_(!E),o(r),r[w].length||"favorite"!==l&&"favorite"!==i||("block"===w&&s(""),"page"===w&&b(""),g.Z.emit("reset-list-count"))}},h),React.createElement(m.Z,{content:!E&&"Add to favorites"},React.createElement(p,{className:(0,a.AK)("w-5 h-5 transition-colors ease-out duration-150",E?"fill-favorite text-favorite":"hover:fill-favorite hover:text-favorite")})))}));const h=e=>{const t=["skip","logo","fav-icon"];for(const r of t)if(e.includes(r))return!0;return!1},v={linearTween(e,t,r,o){return r*e/o+t},easeInQuad(e,t,r,o){return r*(e/=o)*e+t},easeOutQuad(e,t,r,o){return-r*(e/=o)*(e-2)+t},easeInOutQuad(e,t,r,o){return(e/=o/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},easeInCubic(e,t,r,o){return r*(e/=o)*e*e+t},easeOutCubic(e,t,r,o){return e/=o,r*(--e*e*e+1)+t},easeInOutCubic(e,t,r,o){return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}};Object.seal(v);var k=v;const{spectra_common_styles:w}=ast_block_template_vars,E="visible";var _=(0,o.Z)((0,s.Z)((e=>{const{getDisableAi:t,getDisablePreview:r,getTogglePopup:o}=e("ast-block-templates");return{disableAi:t(),disablePreview:r(),togglePopup:o()}})))((0,n.memo)((e=>{let{item:t,content:r,stylesheet:o,astraCustomizer:s,globalStylesheet:c,colorPalette:i,dynamicContent:u,selectedImages:p,disableAi:d,togglePopup:g,email:m,phone:y,address:f}=e;const v=(0,n.useRef)(null),_=(0,n.useRef)(null),C=t["thumbnail-image-url"]||"",B=t["featured-image-url"]||"";let x=0,P=0,R=0;const[O,I]=(0,n.useState)({importing:!1}),[$,N]=(0,n.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`),[S,j]=(0,n.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`);function A(){const e=v?.current,t=_?.current;if(!e||!t)return;const r=e.parentNode.offsetWidth/1200,o=r*t.offsetHeight;e.style.transform=`scale(${r})`,e.style.height=`${o}px`}(0,n.useLayoutEffect)((()=>{let e=!0;const n={landscape:[],portrait:[]};p?.forEach((e=>{"landscape"===e.orientation?n.landscape.push(e):n.portrait.push(e)}));const a=n,l=new Image;l.src=C;const g=new Image;g.src=B;const b=_.current;function v(t,r){e&&(t.onload=()=>{r(t.src)})}v(l,N),v(g,j);const k=document.getElementById("astra-wp-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container"),O=document.getElementById("astra-block-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container");let I="";var $,S,Z;if(o&&($=o,S=a?.landscape,o=d?$:0!==Object.keys(u).length&&u.hasOwnProperty(t.category)?S&&0===S.length?$:$.replace(/background-image\s*:\s*url\(['"]?([^'")]+)['"]?\)/g,(function(e,t){if(h(t))return e;if(!S[R]?.url)return"";const r=S[R]?.url;return R++,R%=S.length,'background-image: url("'+r+'")'})):$),I+=s?``:"",I+=``,I=o?`${I} `:I,c&&(I+=``),k&&(I+=``),O&&(I+=``),b&&r){let e=b.shadowRoot;if(null===e&&(e=b.attachShadow({mode:"open"})),null===e)return;let o=r;if(!d){const e=u?u[t.category]:[];e&&Object.keys(e)?.length>0&&Object.keys(e).forEach((t=>{o=null!==e[t]?o.replace(t,e[t]):o})),Object.keys(u).length>0&&u.hasOwnProperty(t.category)&&(Z=o,m&&(Z=Z.replace("contact@example.com",m)),y&&(Z=Z.replace("202-555-0188",y)),f&&(Z=Z.replace("2360 Hood Avenue, San Diego, CA, 92123",f)),o=Z,o=F(o))}e.innerHTML=I+'
'+o+"
",i.forEach(((t,r)=>{e?.host.style.setProperty(`--ast-global-color-${r}`,t)}));const s=b.shadowRoot.querySelectorAll("img");e&&(s.forEach((e=>{h(e.src)||d||0===a.landscape.length||0===a.portrait.length||0===Object.keys(u).length||!u.hasOwnProperty(t.category)||T(e,"hidden")})),A(),((e,r)=>{if(d)return;if(0===Object.keys(u).length||!u.hasOwnProperty(t.category))return;const o=r.landscape?r.landscape:[],s=r.portrait?r.portrait:[];0!==o.length&&0!==s.length&&e?.forEach((function(e,t){h(e.src)||(e.onload=()=>{const r=e.getAttribute("src")||"";if(r.includes("unsplash")||r.includes("pexels")||r.includes("pixabay"))return void T(e,E);const n=(e=>{const t=new Image;return t.src=e,t.width>t.height?"landscape":"portrait"})(e.src);let a;if(x=t%o.length,P=t%s.length,a="landscape"===n?o[x]:s[P],void 0!==a)if(a.url.includes("unsplash")||a.url.includes("pexels")||a.url.includes("pixabay")){if("landscape"===n?(x++,x%=o.length):(P++,P%=s.length),"PICTURE"===e.parentNode.nodeName)e.parentNode.querySelectorAll("source").forEach((e=>{e.setAttribute("srcset",a.optimized_url)})),e.parentNode.querySelector("img").setAttribute("src",a.optimized_url);else{const t=document.createElement("img");t.src=a.optimized_url,e.parentNode.replaceChild(t,e)}T(e,E)}else T(e,E);else T(e,E)},e.onerror=()=>{T(e,E)})}))})(s,a))}return()=>{e=!1}}),[t,d,u,p]),(0,n.useEffect)((()=>{const e=new ResizeObserver(A);return e.observe(document.documentElement),()=>{e&&e.disconnect()}}),[]),(0,n.useEffect)((()=>{const e=document.querySelector("#ast-block-templates-modal-wrap");if(!e)return;const t=new MutationObserver(A);return t.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{t&&t.disconnect()}}),[]),(0,n.useEffect)((()=>{const e=_?.current;if(e){const t=e.shadowRoot;i.forEach(((e,r)=>{null!==t&&t.host.style.setProperty(`--ast-global-color-${r}`,e)}))}}),[i]);const T=(e,t)=>{e&&(e.style.visibility=t)},F=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f?e.replace(/(]+src="https:\/\/maps\.google\.com\/maps\?q=)([^&]+)(&z=\d+&hl=en&t=m&output=embed&iwloc=near"[^>]*><\/iframe>)/g,`$1${encodeURIComponent(f)}$3`):e};let Z=0,z=0;const D=(e,t,r)=>{const o=e.scrollTop,s=t-o;let n=0;const a=function(){n+=20;const t=k.linearTween(n,o,s,r);e.scrollTop=t,n{g||(x=0,P=0,R=0)}),[g]),React.createElement("div",{className:(0,a.AK)("w-full h-fit p-5",!0===O.importing?"importing":"")},React.createElement("div",{className:"cursor-pointer relative border border-solid border-border-primary hover:border-accent-spectra transition duration-150 ease-in-out overflow-hidden group"},React.createElement("div",{className:"thumbnail left-0 m-0 min-h-[auto] overflow-visible text-left top-0 origin-top-left relative pointer-events-none",ref:v},React.createElement("div",{className:"absolute w-[1200px] pointer-events-none max-h-[1600px] overflow-hidden",ref:_},!r&&React.createElement("img",{srcSet:`${S}, ${$}`,src:$,alt:"Preview"}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"})))),React.createElement("div",{className:"absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-end",onMouseEnter:()=>{if("page"!==t.type)return;const e=_.current;Z&&clearTimeout(Z),z=setTimeout((()=>{D(e,e.scrollHeight,4e3)}),1e3)},onMouseLeave:()=>{z&&clearTimeout(z);const e=_.current;Z&&clearTimeout(Z),D(e,0,1500)}},React.createElement("div",{className:(0,a.AK)("opacity-0 group-hover:opacity-100 w-full flex items-center justify-between px-3 py-2 backdrop-blur-sm bg-white/[0.85] shadow-action-buttons transition-all duration-150 ease-in-out",!0===O.importing?"opacity-100":"")},React.createElement(l.Z,{title:"Insert",liveRequest:!0,item:t,importing:O.importing,onClick:()=>{I({...O,importing:!0})},onBlockImport:()=>{I({...O,importing:!1})}}),React.createElement(b,{item:t})))))})))}}]); ======= <<<<<<< HEAD "use strict";(self.webpackChunkast_block_templates=self.webpackChunkast_block_templates||[]).push([[191],{6191:function(e,t,r){r.r(t),r.d(t,{default:function(){return C}});var o=r(5711),s=r(5940),n=r(7363),a=r(7009),l=r(5806),c=r(5302),i=r(8096),u=r(10),p=n.forwardRef((function({title:e,titleId:t,...r},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"}))})),d=r(6486),g=r(2154),m=r(972);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{getFilterBlocksByCategory:t,getFilterBlocksPagesByCategory:r}=e("ast-block-templates");return{filterBlocksByCategory:t(),filterBlocksPagesByCategory:r()}})),(0,i.Z)((e=>{const{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:o}=e("ast-block-templates");return{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:o}})))((e=>{let{item:t,className:r,setFavorites:o,setFilterBlocksByCategory:s,filterBlocksByCategory:l,filterBlocksPagesByCategory:i,setFilterBlocksPagesByCategory:b,...h}=e;const{favorites:v,currentScreen:k}=(0,c.Z)((e=>{const{getFavorites:t,getCurrentScreen:r}=e("ast-block-templates");return{favorites:t(),currentScreen:r()}})),w="all-blocks-grid"===k?"block":"page",[E,_]=(0,n.useState)(v[w]?.includes(+t.ID));return React.createElement("button",y({className:(0,a.AK)("flex items-center justify-center rounded-full p-2 bg-white cursor-pointer border border-solid border-border-primary focus:outline-none",E?"":"text-icon-secondary",r),onClick:async e=>{e?.preventDefault(),e?.stopPropagation();try{await(0,u.Z)({path:`${f}/wp-json/gutenberg-templates/v1/favorite`,data:{type:t.type,block_id:t.ID,status:!E},method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce,"content-type":"application/json"}})}catch(e){console.error(e)}let r={...v};r=E?{...v,[w]:v[w].filter((e=>e!==(0,d.parseInt)(t.ID)))}:{...v,[w]:[...new Set([...v[w],(0,d.parseInt)(t.ID)])]},_(!E),o(r),r[w].length||"favorite"!==l&&"favorite"!==i||("block"===w&&s(""),"page"===w&&b(""),g.Z.emit("reset-list-count"))}},h),React.createElement(m.Z,{content:E?"Remove from favorites":"Add to favorites"},React.createElement(p,{className:(0,a.AK)("w-5 h-5 transition-colors ease-out duration-150",E?"fill-favorite text-favorite":"hover:fill-favorite hover:text-favorite")})))}));const h=e=>{const t=["skip","logo","fav-icon"];for(const r of t)if(e.includes(r))return!0;return!1},v={linearTween(e,t,r,o){return r*e/o+t},easeInQuad(e,t,r,o){return r*(e/=o)*e+t},easeOutQuad(e,t,r,o){return-r*(e/=o)*(e-2)+t},easeInOutQuad(e,t,r,o){return(e/=o/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},easeInCubic(e,t,r,o){return r*(e/=o)*e*e+t},easeOutCubic(e,t,r,o){return e/=o,r*(--e*e*e+1)+t},easeInOutCubic(e,t,r,o){return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}};Object.seal(v);var k=v;const{spectra_common_styles:w,is_rtl:E}=ast_block_template_vars,_="visible";var C=(0,o.Z)((0,s.Z)((e=>{const{getDisableAi:t,getDisablePreview:r,getTogglePopup:o}=e("ast-block-templates");return{disableAi:t(),disablePreview:r(),togglePopup:o()}})))((0,n.memo)((e=>{let{item:t,content:r,stylesheet:o,astraCustomizer:s,globalStylesheet:c,colorPalette:i,dynamicContent:u,selectedImages:p,disableAi:d,togglePopup:g,email:m,phone:y,address:f}=e;const v=(0,n.useRef)(null),C=(0,n.useRef)(null),B=t["thumbnail-image-url"]||"",x=t["featured-image-url"]||"";let R=0,P=0,O=0;const[I,$]=(0,n.useState)({importing:!1}),[N,S]=(0,n.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`),[j,A]=(0,n.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`);function T(){const e=v?.current,t=C?.current;if(!e||!t)return;const r=e.parentNode.offsetWidth/1200,o=r*t.offsetHeight;e.style.transform=`scale(${r})`,e.style.height=`${o}px`}(0,n.useLayoutEffect)((()=>{let e=!0;const n={landscape:[],portrait:[]};p?.forEach((e=>{"landscape"===e.orientation?n.landscape.push(e):n.portrait.push(e)}));const a=n,l=new Image;l.src=B;const g=new Image;g.src=x;const b=C.current;function v(t,r){e&&(t.onload=()=>{r(t.src)})}v(l,S),v(g,A);const k=document.getElementById("astra-wp-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container"),E=document.getElementById("astra-block-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container");let I="";var $,N,j;if(o&&($=o,N=a?.landscape,o=d?$:0!==Object.keys(u).length&&u.hasOwnProperty(t.category)?N&&0===N.length?$:$.replace(/background-image\s*:\s*url\(['"]?([^'")]+)['"]?\)/g,(function(e,t){if(h(t))return e;if(!N[O]?.url)return"";const r=N[O]?.url;return O++,O%=N.length,'background-image: url("'+r+'")'})):$),I+=s?``:"",I+=``,I=o?`${I} `:I,c&&(I+=``),k&&(I+=``),E&&(I+=``),b&&r){let e=b.shadowRoot;if(null===e&&(e=b.attachShadow({mode:"open"})),null===e)return;let o=r;if(!d){const e=u?u[t.category]:[];e&&Object.keys(e)?.length>0&&Object.keys(e).forEach((t=>{o=null!==e[t]?o.replace(t,e[t]):o})),Object.keys(u).length>0&&u.hasOwnProperty(t.category)&&(j=o,m&&(j=j.replace("contact@example.com",m)),y&&(j=j.replace("202-555-0188",y)),f&&(j=j.replace("2360 Hood Avenue, San Diego, CA, 92123",f)),o=j,o=Z(o))}e.innerHTML=I+'
'+o+"
",i.forEach(((t,r)=>{e?.host.style.setProperty(`--ast-global-color-${r}`,t)}));const s=b.shadowRoot.querySelectorAll("img");e&&(s.forEach((e=>{h(e.src)||d||0===a.landscape.length||0===a.portrait.length||0===Object.keys(u).length||!u.hasOwnProperty(t.category)||F(e,"hidden")})),T(),((e,r)=>{if(d)return;if(0===Object.keys(u).length||!u.hasOwnProperty(t.category))return;const o=r.landscape?r.landscape:[],s=r.portrait?r.portrait:[];0!==o.length&&0!==s.length&&e?.forEach((function(e,t){h(e.src)||(e.onload=()=>{const r=e.getAttribute("src")||"";if(r.includes("unsplash")||r.includes("pexels")||r.includes("pixabay"))return void F(e,_);const n=(e=>{const t=new Image;return t.src=e,t.width>t.height?"landscape":"portrait"})(e.src);let a;if(R=t%o.length,P=t%s.length,a="landscape"===n?o[R]:s[P],void 0!==a)if(a.url.includes("unsplash")||a.url.includes("pexels")||a.url.includes("pixabay")){if("landscape"===n?(R++,R%=o.length):(P++,P%=s.length),"PICTURE"===e.parentNode.nodeName)e.parentNode.querySelectorAll("source").forEach((e=>{e.setAttribute("srcset",a.optimized_url)})),e.parentNode.querySelector("img").setAttribute("src",a.optimized_url);else{const t=document.createElement("img");t.src=a.optimized_url,e.parentNode.replaceChild(t,e)}F(e,_)}else F(e,_);else F(e,_)},e.onerror=()=>{F(e,_)})}))})(s,a))}return()=>{e=!1}}),[t,d,u,p]),(0,n.useEffect)((()=>{const e=new ResizeObserver(T);return e.observe(document.documentElement),()=>{e&&e.disconnect()}}),[]),(0,n.useEffect)((()=>{const e=document.querySelector("#ast-block-templates-modal-wrap");if(!e)return;const t=new MutationObserver(T);return t.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{t&&t.disconnect()}}),[]),(0,n.useEffect)((()=>{const e=C?.current;if(e){const t=e.shadowRoot;i.forEach(((e,r)=>{null!==t&&t.host.style.setProperty(`--ast-global-color-${r}`,e)}))}}),[i]);const F=(e,t)=>{e&&(e.style.visibility=t)},Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f?e.replace(/(]+src="https:\/\/maps\.google\.com\/maps\?q=)([^&]+)(&z=\d+&hl=en&t=m&output=embed&iwloc=near"[^>]*><\/iframe>)/g,`$1${encodeURIComponent(f)}$3`):e};let z=0,D=0;const q=(e,t,r)=>{const o=e.scrollTop,s=t-o;let n=0;const a=function(){n+=20;const t=k.linearTween(n,o,s,r);e.scrollTop=t,n{g||(R=0,P=0,O=0)}),[g]);const L=E?"origin-top-right":"origin-top-left";return React.createElement("div",{className:(0,a.AK)("w-full h-fit p-5",!0===I.importing?"importing":"")},React.createElement("div",{className:"cursor-pointer relative border border-solid border-border-primary hover:border-accent-spectra transition duration-150 ease-in-out overflow-hidden group"},React.createElement("div",{className:`thumbnail left-0 m-0 min-h-[auto] overflow-visible text-left top-0 ${L} relative pointer-events-none`,ref:v},React.createElement("div",{className:"absolute w-[1200px] pointer-events-none max-h-[1600px] overflow-hidden",ref:C},!r&&React.createElement("img",{srcSet:`${j}, ${N}`,src:N,alt:"Preview"}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"})))),React.createElement("div",{className:"absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-end",onMouseEnter:()=>{if("page"!==t.type)return;const e=C.current;z&&clearTimeout(z),D=setTimeout((()=>{q(e,e.scrollHeight,4e3)}),1e3)},onMouseLeave:()=>{D&&clearTimeout(D);const e=C.current;z&&clearTimeout(z),q(e,0,1500)}},React.createElement("div",{className:(0,a.AK)("opacity-0 group-hover:opacity-100 w-full flex items-center justify-between px-3 py-2 backdrop-blur-sm bg-white/[0.85] shadow-action-buttons transition-all duration-150 ease-in-out",!0===I.importing?"opacity-100":"")},React.createElement(l.Z,{title:"Insert",liveRequest:!0,item:t,importing:I.importing,onClick:()=>{$({...I,importing:!0})},onBlockImport:()=>{$({...I,importing:!1})}}),React.createElement(b,{item:t})))))})))}}]); ======= "use strict";(self.webpackChunkast_block_templates=self.webpackChunkast_block_templates||[]).push([[191],{6191:function(e,t,r){r.r(t),r.d(t,{default:function(){return C}});var o=r(5711),s=r(5940),n=r(7363),a=r(7009),l=r(5806),c=r(5302),i=r(8096),u=r(10),p=n.forwardRef((function({title:e,titleId:t,...r},o){return n.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true",ref:o,"aria-labelledby":t},r),e?n.createElement("title",{id:t},e):null,n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"}))})),d=r(6486),g=r(2154),m=r(972);function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t{const{getFilterBlocksByCategory:t,getFilterBlocksPagesByCategory:r}=e("ast-block-templates");return{filterBlocksByCategory:t(),filterBlocksPagesByCategory:r()}})),(0,i.Z)((e=>{const{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:o}=e("ast-block-templates");return{setFavorites:t,setFilterBlocksByCategory:r,setFilterBlocksPagesByCategory:o}})))((e=>{let{item:t,className:r,setFavorites:o,setFilterBlocksByCategory:s,filterBlocksByCategory:l,filterBlocksPagesByCategory:i,setFilterBlocksPagesByCategory:b,...h}=e;const{favorites:v,currentScreen:k}=(0,c.Z)((e=>{const{getFavorites:t,getCurrentScreen:r}=e("ast-block-templates");return{favorites:t(),currentScreen:r()}})),w="all-blocks-grid"===k?"block":"page",[E,_]=(0,n.useState)(v[w]?.includes(+t.ID));return React.createElement("button",y({className:(0,a.AK)("flex items-center justify-center rounded-full p-2 bg-white cursor-pointer border border-solid border-border-primary focus:outline-none",E?"":"text-icon-secondary",r),onClick:async e=>{e?.preventDefault(),e?.stopPropagation();try{await(0,u.Z)({path:`${f}/wp-json/gutenberg-templates/v1/favorite`,data:{type:t.type,block_id:t.ID,status:!E},method:"POST",headers:{"X-WP-Nonce":ast_block_template_vars.rest_api_nonce,"content-type":"application/json"}})}catch(e){console.error(e)}let r={...v};r=E?{...v,[w]:v[w].filter((e=>e!==(0,d.parseInt)(t.ID)))}:{...v,[w]:[...new Set([...v[w],(0,d.parseInt)(t.ID)])]},_(!E),o(r),r[w].length||"favorite"!==l&&"favorite"!==i||("block"===w&&s(""),"page"===w&&b(""),g.Z.emit("reset-list-count"))}},h),React.createElement(m.Z,{content:E?"Remove from favorites":"Add to favorites"},React.createElement(p,{className:(0,a.AK)("w-5 h-5 transition-colors ease-out duration-150",E?"fill-favorite text-favorite":"hover:fill-favorite hover:text-favorite")})))}));const h=e=>{const t=["skip","logo","fav-icon"];for(const r of t)if(e.includes(r))return!0;return!1},v={linearTween(e,t,r,o){return r*e/o+t},easeInQuad(e,t,r,o){return r*(e/=o)*e+t},easeOutQuad(e,t,r,o){return-r*(e/=o)*(e-2)+t},easeInOutQuad(e,t,r,o){return(e/=o/2)<1?r/2*e*e+t:-r/2*(--e*(e-2)-1)+t},easeInCubic(e,t,r,o){return r*(e/=o)*e*e+t},easeOutCubic(e,t,r,o){return e/=o,r*(--e*e*e+1)+t},easeInOutCubic(e,t,r,o){return(e/=o/2)<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}};Object.seal(v);var k=v;const{spectra_common_styles:w,is_rtl:E}=ast_block_template_vars,_="visible";var C=(0,o.Z)((0,s.Z)((e=>{const{getDisableAi:t,getDisablePreview:r,getTogglePopup:o}=e("ast-block-templates");return{disableAi:t(),disablePreview:r(),togglePopup:o()}})))((0,n.memo)((e=>{let{item:t,content:r,stylesheet:o,astraCustomizer:s,globalStylesheet:c,colorPalette:i,dynamicContent:u,selectedImages:p,disableAi:d,togglePopup:g,email:m,phone:y,address:f}=e;const v=(0,n.useRef)(null),C=(0,n.useRef)(null),B=t["thumbnail-image-url"]||"",x=t["featured-image-url"]||"";let R=0,P=0,O=0;const[I,$]=(0,n.useState)({importing:!1}),[N,S]=(0,n.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`),[j,A]=(0,n.useState)(`${ast_block_template_vars.uri}dist/placeholder_200_200.png`);function T(){const e=v?.current,t=C?.current;if(!e||!t)return;const r=e.parentNode.offsetWidth/1200,o=r*t.offsetHeight;e.style.transform=`scale(${r})`,e.style.height=`${o}px`}(0,n.useLayoutEffect)((()=>{let e=!0;const n={landscape:[],portrait:[]};p?.forEach((e=>{"landscape"===e.orientation?n.landscape.push(e):n.portrait.push(e)}));const a=n,l=new Image;l.src=B;const g=new Image;g.src=x;const b=C.current;function v(t,r){e&&(t.onload=()=>{r(t.src)})}v(l,S),v(g,A);const k=document.getElementById("astra-wp-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container"),E=document.getElementById("astra-block-editor-styles-inline-css")?.textContent.replace(/:root/g,".block-container").replace(/body/g,".block-container");let I="";var $,N,j;if(o&&($=o,N=a?.landscape,o=d?$:0!==Object.keys(u).length&&u.hasOwnProperty(t.category)?N&&0===N.length?$:$.replace(/background-image\s*:\s*url\(['"]?([^'")]+)['"]?\)/g,(function(e,t){if(h(t))return e;if(!N[O]?.url)return"";const r=N[O]?.url;return O++,O%=N.length,'background-image: url("'+r+'")'})):$),I+=s?``:"",I+=``,I=o?`${I} `:I,c&&(I+=``),k&&(I+=``),E&&(I+=``),b&&r){let e=b.shadowRoot;if(null===e&&(e=b.attachShadow({mode:"open"})),null===e)return;let o=r;if(!d){const e=u?u[t.category]:[];e&&Object.keys(e)?.length>0&&Object.keys(e).forEach((t=>{o=null!==e[t]?o.replace(t,e[t]):o})),Object.keys(u).length>0&&u.hasOwnProperty(t.category)&&(j=o,m&&(j=j.replace("contact@example.com",m)),y&&(j=j.replace("202-555-0188",y)),f&&(j=j.replace("2360 Hood Avenue, San Diego, CA, 92123",f)),o=j,o=Z(o))}e.innerHTML=I+'
'+o+"
",i.forEach(((t,r)=>{e?.host.style.setProperty(`--ast-global-color-${r}`,t)}));const s=b.shadowRoot.querySelectorAll("img");e&&(s.forEach((e=>{h(e.src)||d||0===a.landscape.length||0===a.portrait.length||0===Object.keys(u).length||!u.hasOwnProperty(t.category)||F(e,"hidden")})),T(),((e,r)=>{if(d)return;if(0===Object.keys(u).length||!u.hasOwnProperty(t.category))return;const o=r.landscape?r.landscape:[],s=r.portrait?r.portrait:[];0!==o.length&&0!==s.length&&e?.forEach((function(e,t){h(e.src)||(e.onload=()=>{const r=e.getAttribute("src")||"";if(r.includes("unsplash")||r.includes("pexels")||r.includes("pixabay"))return void F(e,_);const n=(e=>{const t=new Image;return t.src=e,t.width>t.height?"landscape":"portrait"})(e.src);let a;if(R=t%o.length,P=t%s.length,a="landscape"===n?o[R]:s[P],void 0!==a)if(a.url.includes("unsplash")||a.url.includes("pexels")||a.url.includes("pixabay")){if("landscape"===n?(R++,R%=o.length):(P++,P%=s.length),"PICTURE"===e.parentNode.nodeName)e.parentNode.querySelectorAll("source").forEach((e=>{e.setAttribute("srcset",a.optimized_url)})),e.parentNode.querySelector("img").setAttribute("src",a.optimized_url);else{const t=document.createElement("img");t.src=a.optimized_url,e.parentNode.replaceChild(t,e)}F(e,_)}else F(e,_);else F(e,_)},e.onerror=()=>{F(e,_)})}))})(s,a))}return()=>{e=!1}}),[t,d,u,p]),(0,n.useEffect)((()=>{const e=new ResizeObserver(T);return e.observe(document.documentElement),()=>{e&&e.disconnect()}}),[]),(0,n.useEffect)((()=>{const e=document.querySelector("#ast-block-templates-modal-wrap");if(!e)return;const t=new MutationObserver(T);return t.observe(e,{childList:!0,attributes:!0,subtree:!0}),()=>{t&&t.disconnect()}}),[]),(0,n.useEffect)((()=>{const e=C?.current;if(e){const t=e.shadowRoot;i.forEach(((e,r)=>{null!==t&&t.host.style.setProperty(`--ast-global-color-${r}`,e)}))}}),[i]);const F=(e,t)=>{e&&(e.style.visibility=t)},Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return f?e.replace(/(]+src="https:\/\/maps\.google\.com\/maps\?q=)([^&]+)(&z=\d+&hl=en&t=m&output=embed&iwloc=near"[^>]*><\/iframe>)/g,`$1${encodeURIComponent(f)}$3`):e};let z=0,D=0;const q=(e,t,r)=>{const o=e.scrollTop,s=t-o;let n=0;const a=function(){n+=20;const t=k.linearTween(n,o,s,r);e.scrollTop=t,n{g||(R=0,P=0,O=0)}),[g]);const L=E?"origin-top-right":"origin-top-left";return React.createElement("div",{className:(0,a.AK)("w-full h-fit p-5",!0===I.importing?"importing":"")},React.createElement("div",{className:(0,a.AK)("cursor-pointer relative border border-solid border-border-primary hover:border-accent-spectra transition duration-150 ease-in-out overflow-hidden group",I.importing&&"border-accent-spectra")},React.createElement("div",{className:`thumbnail left-0 m-0 min-h-[auto] overflow-visible text-left top-0 ${L} relative pointer-events-none`,ref:v},React.createElement("div",{className:"absolute w-[1200px] pointer-events-none max-h-[1600px] overflow-hidden",ref:C},!r&&React.createElement("img",{srcSet:`${j}, ${N}`,src:N,alt:"Preview"}),React.createElement("div",{className:"preview"},React.createElement("span",{className:"ast-block-templates-icon ast-block-templates-icon-search"})))),React.createElement("div",{className:"absolute inset-0 grid grid-cols-1 grid-rows-1 place-items-end",onMouseEnter:()=>{if("page"!==t.type)return;const e=C.current;z&&clearTimeout(z),D=setTimeout((()=>{q(e,e.scrollHeight,4e3)}),1e3)},onMouseLeave:()=>{D&&clearTimeout(D);const e=C.current;z&&clearTimeout(z),q(e,0,1500)}},React.createElement("div",{className:(0,a.AK)("opacity-0 group-hover:opacity-100 w-full flex items-center justify-between px-3 py-2 backdrop-blur-sm bg-white/[0.85] shadow-action-buttons transition-all duration-150 ease-in-out",!0===I.importing?"opacity-100":"")},React.createElement(l.Z,{title:"Insert",liveRequest:!0,item:t,importing:I.importing,onClick:()=>{$({...I,importing:!0})},onBlockImport:()=>{$({...I,importing:!1})}}),React.createElement(b,{item:t})))))})))}}]); >>>>>>> fcf17d42bb7600ec5e85d14217ba2ab162bd9144 >>>>>>> f21e5eda10b9a665d99089dc46926b4fe7ca33af {"id":684,"date":"2021-07-16T22:30:08","date_gmt":"2021-07-16T22:30:08","guid":{"rendered":"https:\/\/moonmoni.com\/?p=684"},"modified":"2021-07-16T22:40:02","modified_gmt":"2021-07-16T22:40:02","slug":"is-it-better-to-advertise-on-facebook-or-instagram","status":"publish","type":"post","link":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/","title":{"rendered":"is it better to advertise on facebook or instagram"},"content":{"rendered":"

<\/p>

Are you struggling to decide which of the advertising giants is better to choose? The struggle is real! Both have their perks and limitations. However, if you think that one platform is enough for advertising rather than using two, you should give it a second thought. Especially, if you\u2019re new to the ocean of advertising, you need to learn about a plethora of aspects to decide which big fish is better to boost your business.\u00a0\u00a0<\/p>

Let\u2019s compare both of the advertising giants by analyzing different aspects so that we get to know is it better to advertise on facebook or instagram.<\/p>

Advertisement Based Upon the Number of Users<\/h2>

Facebook is the most widely used social media platform with more than 2.7 billion users<\/strong><\/a>. None of the other social media platforms are near competing with this number, especially Instagram. On the other hand, Instagram is far behind in this race with 1.2 billion users. Not even half!\u00a0<\/p>

User Engagement<\/h2>

74% of Facebook users<\/strong><\/a> use this platform daily. It means your advertisement has better chances to go through the audience’s sight. As compared to it, Instagram daily users are around 39% which means more than 500 million<\/a><\/strong> people are using Instagram daily. So, in terms of user engagement, your advertisement will have better chances to reach more people on Facebook.<\/p>

Purchasing Approach<\/h2>

Instagram is the king in this regard. Around 130 million users<\/a><\/strong> engage with shopping-related posts on Instagram every month. Around 81%<\/strong> <\/a>of total users use Instagram to get to know about any product or service. 72%<\/a><\/strong> of Instagram users say that they made their purchase decision based on seeing some product on Instagram. This number is huge as compared to Facebook.<\/p>

Gender-Based User Engagement<\/h2>

If you want to advertise a gender specific product or service, first you should get to know which platform is better in this regard. 49.6% of Instagram users are female while 50.4% are male. On the other hand, 43.6%<\/strong><\/a> of Facebook users are female and male users lead this platform with 56.4%<\/a> <\/strong>of their presence.<\/p>

Now, for instance, if you are running a female clothing brand, obviously Instagram is a better platform for you to advertise your products since almost half of the users on this platform are female. Plus, more user engagement and a better purchasing approach make it a better platform to choose when it comes to choosing it for advertisement.<\/p>

Getting frustrated? There are yet some other aspects to compare. So, fret not!<\/p>

Number of Story Users<\/h2>

Both of the platforms have equal stats for the number of story users. Most of the brands use Facebook or Instagram story options to introduce their new products or services or for other promotions. On both of the platforms, around 500 million <\/a><\/strong>people get engaged with stories daily. So, if you\u2019re planning to influence the users’ purchase decision using stories, you can use either platform to advertise your product or service via story.<\/p>

Comparison Based Upon Call-to-Action<\/h2>

Using a call-to-action strategy<\/a><\/strong> to advertise will engage your potential clients. When you advertise via story, both of the platforms offer an option to ask questions from potential buyers. Else, you can create a poll regarding a new or unusual product or service. In this way, you can get viable feedback and people tend to remember what they\u2019re questioned about.<\/p>

Since both of the social media platforms offer this service and both have a similar number of story users, you can practice this strategy to advertise on either platform.\u00a0\u00a0<\/p>

Comparison Based Upon Cost<\/h2>

It is surely a deciding factor! The actual cost to advertise on both of the platforms varies. Globally, the average cost per click (CPC) on Facebook is around $0.27<\/strong><\/a>. In addition to this, cost per thousand impressions (CPM) is $7.19<\/a><\/strong>.<\/p>

Conversely, on Instagram, CPC is $0.5 to $0.95 <\/a><\/strong>and CPM is $2.5 to $3.5<\/strong><\/a>. So, you can choose the right platform according to your budget.<\/p>

Users\u2019 Age Comparison<\/h2>

Age is just a number! You may often hear this phrase, however, when it comes to advertising on both platforms, age is a big, fat aspect to target the right audience.<\/p>

In terms of age, Facebook has a wide variety of users. Most of its users fall under the 25 to 34 years age bracket. This is the largest age group with 32.4%<\/a><\/strong> users. Instagram users of the same age group account for 32.8%<\/a>.<\/strong> So, it seems that it is not a big difference. However, do not forget to compare the number of actual users active on both platforms. It will give you a clear idea to choose a better platform.<\/p>

Both of the platforms are important to advertise your brand or product. You can\u2019t replace any! However, if you need to choose only one platform, you can choose on the basis of the different types of users on both platforms.\u00a0\u00a0<\/p>

So, what do you think? Is it better to advertise on Facebook or Instagram? Which is more feasible for you? Or you are going to use both platforms to boost your business. Comment away!<\/p>

<\/p>\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\"\"

Mamnoon ul Hussnain<\/h2>\t\t\n\t\t

I would like to introduce myself as an enthusiastic person who has a deep interest in technology and leadership. I wake up everyday with the motto, “I have to learn something new”<\/p>","protected":false},"excerpt":{"rendered":"

Are you struggling to decide which of the advertising giants is better to choose? The struggle is real! Both have their perks and limitations. However, if you think that one platform is enough for advertising rather than using two, you should give it a second thought. Especially, if you\u2019re new to the ocean of advertising, […]<\/p>\n","protected":false},"author":1,"featured_media":685,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[8,36,39,44],"tags":[42],"class_list":["post-684","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-digital-marketing","category-facebook-ads","category-instagram","category-instagram-ads","tag-facebook","entry","has-media"],"yoast_head":"\nis it better to advertise on facebook or instagram - Moon Moni<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"is it better to advertise on facebook or instagram - Moon Moni\" \/>\n<meta property=\"og:description\" content=\"Are you struggling to decide which of the advertising giants is better to choose? The struggle is real! Both have their perks and limitations. However, if you think that one platform is enough for advertising rather than using two, you should give it a second thought. Especially, if you\u2019re new to the ocean of advertising, […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/\" \/>\n<meta property=\"og:site_name\" content=\"Moon Moni\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-16T22:30:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-07-16T22:40:02+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Mamnoon ul Hussnain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Mamnoon ul Hussnain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/\",\"url\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/\",\"name\":\"is it better to advertise on facebook or instagram - Moon Moni\",\"isPartOf\":{\"@id\":\"https:\/\/moonmoni.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png\",\"datePublished\":\"2021-07-16T22:30:08+00:00\",\"dateModified\":\"2021-07-16T22:40:02+00:00\",\"author\":{\"@id\":\"https:\/\/moonmoni.com\/#\/schema\/person\/dffdbbc72a38ba647da5e914578b56bd\"},\"breadcrumb\":{\"@id\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#primaryimage\",\"url\":\"https:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png\",\"contentUrl\":\"https:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png\",\"width\":1920,\"height\":1080,\"caption\":\"Facebook ads vs Instagram ads\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/moonmoni.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"is it better to advertise on facebook or instagram\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/moonmoni.com\/#website\",\"url\":\"https:\/\/moonmoni.com\/\",\"name\":\"Moon Moni\",\"description\":\"Bigger brands for a better Business\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/moonmoni.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/moonmoni.com\/#\/schema\/person\/dffdbbc72a38ba647da5e914578b56bd\",\"name\":\"Mamnoon ul Hussnain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/moonmoni.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0578170c1a93297eb643334ca0179ecb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0578170c1a93297eb643334ca0179ecb?s=96&d=mm&r=g\",\"caption\":\"Mamnoon ul Hussnain\"},\"sameAs\":[\"https:\/\/moonmoni.com\"],\"url\":\"https:\/\/moonmoni.com\/author\/moonmoni\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"is it better to advertise on facebook or instagram - Moon Moni","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/","og_locale":"en_US","og_type":"article","og_title":"is it better to advertise on facebook or instagram - Moon Moni","og_description":"Are you struggling to decide which of the advertising giants is better to choose? The struggle is real! Both have their perks and limitations. However, if you think that one platform is enough for advertising rather than using two, you should give it a second thought. Especially, if you\u2019re new to the ocean of advertising, […]","og_url":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/","og_site_name":"Moon Moni","article_published_time":"2021-07-16T22:30:08+00:00","article_modified_time":"2021-07-16T22:40:02+00:00","og_image":[{"width":1920,"height":1080,"url":"http:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png","type":"image\/png"}],"author":"Mamnoon ul Hussnain","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Mamnoon ul Hussnain","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/","url":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/","name":"is it better to advertise on facebook or instagram - Moon Moni","isPartOf":{"@id":"https:\/\/moonmoni.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#primaryimage"},"image":{"@id":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#primaryimage"},"thumbnailUrl":"https:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png","datePublished":"2021-07-16T22:30:08+00:00","dateModified":"2021-07-16T22:40:02+00:00","author":{"@id":"https:\/\/moonmoni.com\/#\/schema\/person\/dffdbbc72a38ba647da5e914578b56bd"},"breadcrumb":{"@id":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#primaryimage","url":"https:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png","contentUrl":"https:\/\/moonmoni.com\/wp-content\/uploads\/2021\/07\/Purple-and-White-Startup-Business-Animated-Presentation-1-1-3.png","width":1920,"height":1080,"caption":"Facebook ads vs Instagram ads"},{"@type":"BreadcrumbList","@id":"https:\/\/moonmoni.com\/is-it-better-to-advertise-on-facebook-or-instagram\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/moonmoni.com\/"},{"@type":"ListItem","position":2,"name":"is it better to advertise on facebook or instagram"}]},{"@type":"WebSite","@id":"https:\/\/moonmoni.com\/#website","url":"https:\/\/moonmoni.com\/","name":"Moon Moni","description":"Bigger brands for a better Business","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/moonmoni.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/moonmoni.com\/#\/schema\/person\/dffdbbc72a38ba647da5e914578b56bd","name":"Mamnoon ul Hussnain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/moonmoni.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0578170c1a93297eb643334ca0179ecb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0578170c1a93297eb643334ca0179ecb?s=96&d=mm&r=g","caption":"Mamnoon ul Hussnain"},"sameAs":["https:\/\/moonmoni.com"],"url":"https:\/\/moonmoni.com\/author\/moonmoni\/"}]}},"_links":{"self":[{"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/posts\/684","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/comments?post=684"}],"version-history":[{"count":4,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/posts\/684\/revisions"}],"predecessor-version":[{"id":689,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/posts\/684\/revisions\/689"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/media\/685"}],"wp:attachment":[{"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/media?parent=684"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/categories?post=684"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moonmoni.com\/wp-json\/wp\/v2\/tags?post=684"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}